body.login-page {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

.ambient-blob-left {
    position: absolute;
    top: -10rem; left: -10rem;
    width: 24rem; height: 24rem;
    background: #2563eb;
    border-radius: 9999px;
    filter: blur(72px);
    opacity: 0.34;
    animation: pulse 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.ambient-blob-right {
    position: absolute;
    bottom: -10rem; right: -10rem;
    width: 24rem; height: 24rem;
    background: #7c3aed;
    border-radius: 9999px;
    filter: blur(72px);
    opacity: 0.30;
    animation: pulse 6s cubic-bezier(0.4, 0, 0.6, 1) infinite reverse;
}

.glass-card {
    background-color: rgba(15, 23, 42, 0.84);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 25px 70px 30px rgba(2, 6, 23, 0.34);
    border-radius: 1.35rem;
    padding: 2rem;
    color: #e2e8f0;
}

button { cursor: pointer; }

.role-btn { border: 1px solid transparent; }
.role-btn:hover { transform: translateY(-1px); }

.login-submit {
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 28px -16px rgba(37, 99, 235, 0.95);
}
.login-submit:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 34px -18px rgba(37, 99, 235, 0.95);
}

button[type="submit"] {
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 14px 28px -16px rgba(37, 99, 235, 0.95);
}
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px -18px rgba(37, 99, 235, 0.95);
}

.pw-toggle-btn {
    position: absolute;
    top: 0; bottom: 0; right: 0; left: auto;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    padding: 0 0.875rem;
    background: transparent !important; border: none !important; box-shadow: none !important;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}
.pw-toggle-btn:hover {
    color: #c084fc;
    background: transparent !important;
    transform: none;
    box-shadow: none !important;
}
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* ── Forgot Password Modal Styles ── */
.forgot-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.forgot-modal-overlay.hidden,
#forgotModal.hidden {
    display: none !important;
}

.forgot-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.25s ease;
}

.forgot-modal-card {
    position: relative;
    width: 100%;
    max-width: 28rem;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75),
                0 0 30px -5px rgba(124, 58, 237, 0.20);
    padding: 1.75rem;
    color: #f8fafc;
    z-index: 10;
    animation: forgotModalFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.forgot-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.forgot-header-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.forgot-icon-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: rgba(147, 51, 234, 0.20);
    border: 1px solid rgba(168, 85, 247, 0.40);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    flex-shrink: 0;
}

.forgot-title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.forgot-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    font-weight: 500;
}

.forgot-close-btn {
    color: #94a3b8;
    background: transparent;
    border: none;
    padding: 0.375rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.forgot-close-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.forgot-notice-box {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.30);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #bfdbfe;
}

.forgot-notice-box strong {
    color: #ffffff;
    font-weight: 700;
}

.forgot-form-group {
    margin-bottom: 1rem;
}

.forgot-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.375rem;
}

.forgot-input,
.forgot-select,
.forgot-textarea {
    width: 100%;
    background: rgba(51, 65, 85, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.625rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forgot-input::placeholder,
.forgot-textarea::placeholder {
    color: #64748b;
}

.forgot-input:focus,
.forgot-select:focus,
.forgot-textarea:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
    background: rgba(51, 65, 85, 1);
}

.forgot-select option {
    background-color: #1e293b;
    color: #f8fafc;
}

.forgot-textarea {
    resize: none;
}

.forgot-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.forgot-btn-cancel {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-sans);
    color: #cbd5e1;
    background: #334155;
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.forgot-btn-cancel:hover {
    background: #475569;
    color: #ffffff;
    transform: translateY(-1px);
}

.forgot-btn-submit {
    flex: 1.25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-sans);
    color: #ffffff;
    background-color: #7c3aed;
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 4px 14px -2px rgba(124, 58, 237, 0.5);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.forgot-btn-submit:hover {
    background-color: #6d28d9;
    box-shadow: 0 6px 20px -2px rgba(124, 58, 237, 0.65);
    transform: translateY(-1.5px);
}

.forgot-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@keyframes forgotModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
