* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Heebo', sans-serif;
    overflow: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.login-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 200px;
    height: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Heebo', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #21d3ed;
    box-shadow: 0 0 0 3px rgba(33, 211, 237, 0.15);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-left: 45px;
}

.toggle-password {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: #21d3ed;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Heebo', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #21d3ed;
    color: #1e293b;
}

.btn-primary:hover {
    background: #0ea5c9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 211, 237, 0.35);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #21d3ed;
    text-decoration: none;
    font-size: 14px;
}

.form-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.form-title {
    text-align: center;
    margin-bottom: 8px;
    color: #1a202c;
    font-size: 24px;
    font-weight: 600;
}

.form-desc {
    text-align: center;
    color: #64748b;
    margin-bottom: 24px;
    font-size: 14px;
}

.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 64px;
    color: #16a34a;
    margin-bottom: 16px;
}

.success-message p {
    color: #16a34a;
    font-size: 18px;
    margin-bottom: 24px;
}

.email-sent-message {
    text-align: center;
}

.email-sent-message .icon {
    font-size: 48px;
    color: #16a34a;
    margin-bottom: 16px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 16px;
}

/* Nextend Social Login - Override Styles */
.social-login {
    margin-bottom: 0;
}

/* Fix Google button layout */
.social-login .nsl-container {
    display: block !important;
}

.social-login .nsl-container-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.social-login .nsl-button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-family: 'Heebo', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
}

.social-login .nsl-button:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.social-login .nsl-button-default {
    flex-direction: row !important;
}

.social-login .nsl-button-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    margin-left: 10px !important;
    margin-right: 0 !important;
    padding: 0 !important;
    order: 2 !important;
}

.social-login .nsl-button-icon svg,
.social-login .nsl-button-icon img {
    width: 20px !important;
    height: 20px !important;
}

.social-login .nsl-button-label {
    order: 1 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.social-login a,
.social-login a:hover,
.social-login a b {
    text-decoration: none !important;
}

.social-login .nsl-button-google .nsl-button-label-container {
    color: #334155 !important;
    margin-right: 5px;
}

/* Hide any default Nextend separators */
.social-login .nsl-separator {
    display: none !important;
}