/* =========================================================
   FORGOT PASSWORD DRAWER
   ========================================================= */

.forgot-password-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    z-index: 9998;
}

.forgot-password-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Drawer */

.forgot-password-drawer {
    position: fixed;
    top: 0;
    right: 0;

    width: min(35vw, 620px);
    min-width: 420px;
    height: 100vh;

    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #111111);

    transform: translateX(100%);
    transition: transform 0.35s ease;

    z-index: 9999;

    overflow-y: auto;

    box-shadow:
        -12px 0 40px rgba(0, 0, 0, 0.12);
}

.forgot-password-drawer.is-open {
    transform: translateX(0);
}


/* Content */

.forgot-password-drawer-content {
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 90px 32px 40px;
}


/* Close Button */

.forgot-password-drawer-close {
    position: absolute;
    top: 24px;
    right: 24px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: transparent;
    color: inherit;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.forgot-password-drawer-close:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: rotate(90deg);
}


/* Header */

.forgot-password-drawer-header {
    margin-bottom: 34px;
}

.forgot-password-drawer-label {
    display: block;

    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;

    color: #666;
}

.forgot-password-drawer-header h2 {
    margin: 0 0 12px;

    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 700;
}

.forgot-password-drawer-header p {
    margin: 0;

    max-width: 430px;

    font-size: 15px;
    line-height: 1.65;

    color: #6b7280;
}


/* Form */

.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.forgot-password-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forgot-password-field label {
    font-size: 14px;
    font-weight: 600;
}

.forgot-password-field input {
    width: 100%;
    height: 50px;

    padding: 0 15px;

    border: 1px solid #d9d9d9;
    border-radius: 10px;

    background: transparent;
    color: inherit;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.forgot-password-field input:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}


/* Submit */

.forgot-password-submit-btn {
    width: 100%;
    height: 50px;

    border: none;
    border-radius: 10px;

    background: #111;
    color: #fff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.forgot-password-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* Footer */

.forgot-password-drawer-footer {
    margin-top: 30px;

    text-align: center;
}

.forgot-password-drawer-footer p {
    margin: 0;

    font-size: 14px;
    color: #6b7280;
}

.forgot-password-drawer-footer button {
    margin-left: 4px;

    padding: 0;

    border: none;
    background: none;

    color: inherit;

    font-size: inherit;
    font-weight: 600;

    cursor: pointer;

    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Dark Theme */

[data-theme="dark"] .forgot-password-drawer {
    background: #111;
    color: #fff;
}

[data-theme="dark"] .forgot-password-drawer-label {
    color: #aaa;
}

[data-theme="dark"] .forgot-password-drawer-header p,
[data-theme="dark"] .forgot-password-drawer-footer p {
    color: #999;
}

[data-theme="dark"] .forgot-password-field input {
    border-color: #333;
}

[data-theme="dark"] .forgot-password-field input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .forgot-password-submit-btn {
    background: #fff;
    color: #111;
}

[data-theme="dark"] .forgot-password-drawer-close:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* Mobile */

@media (max-width: 700px) {

    .forgot-password-drawer {
        width: 100%;
        min-width: 0;
    }

    .forgot-password-drawer-content {
        padding:
            80px 22px 32px;
    }

    .forgot-password-drawer-header h2 {
        font-size: 30px;
    }

}