body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at 12% 14%, rgba(238, 127, 161, 0.22) 0, transparent 38%),
        radial-gradient(circle at 90% 8%, rgba(122, 203, 142, 0.22) 0, transparent 42%),
        linear-gradient(140deg, #fff8e8 0%, #f7fbe9 55%, #fffdf6 100%);
}

.auth-container {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 16px;
}

.forgot-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 190, 203, 0.6);
    border-radius: 30px;
    box-shadow:
        0 30px 80px rgba(214, 126, 141, 0.2),
        0 3px 0 rgba(255, 255, 255, 0.8) inset;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 246, 0.95));
    backdrop-filter: blur(4px);
    animation: cardRise 0.55s ease;
}

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.forgot-ornament {
    position: absolute;
    width: 220px;
    height: 220px;
    top: -90px;
    right: -86px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffd1b7, #f89aac 70%);
    opacity: 0.6;
    pointer-events: none;
}

.forgot-header {
    position: relative;
    margin-bottom: 16px;
}

.forgot-header h2 {
    font-family: 'Prata', serif;
    font-size: clamp(2rem, 4.5vw, 2.6rem);
    line-height: 1.15;
    color: #ee7fa1;
    margin: 8px 0 10px;
}

.forgot-header p {
    color: #7a6a72;
    margin-bottom: 12px;
    font-size: 0.96rem;
}

.forgot-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #934f6a;
    background: linear-gradient(120deg, #ffe0d8, #ffdbe9);
    border: 1px solid rgba(217, 114, 152, 0.25);
}

.forgot-form {
    text-align: left;
}

.forgot-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #8a5f6e;
}

.after-send label {
    display: block;
    text-align: left;
    margin: 8px 0 8px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #8a5f6e;
}

.forgot-form input,
.after-send .password-wrapper input,
.after-send input[type="text"] {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #f2bfd0;
    background: #fff;
    min-height: 46px;
    padding: 0 14px;
    font-size: 0.95rem;
    color: #4f3d45;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forgot-form input:focus,
.after-send .password-wrapper input:focus,
.after-send input[type="text"]:focus,
.otp-box:focus {
    outline: none;
    border-color: #d77797;
    box-shadow: 0 0 0 4px rgba(215, 119, 151, 0.14);
}

.forgot-form button,
#resetBtn,
.ghost-btn {
    min-height: 48px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.forgot-form button,
#resetBtn {
    margin-top: 2px;
    width: 100%;
    color: #fff;
    background: linear-gradient(110deg, #ee7fa1, #7acb8e 55%, #5fa66a);
    box-shadow: 0 14px 28px rgba(122, 203, 142, 0.2);
}

.forgot-form button:hover,
#resetBtn:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
}

.forgot-form button i,
#resetBtn i,
.ghost-btn i {
    margin-right: 8px;
}

.after-send {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(227, 152, 179, 0.42);
    background: linear-gradient(180deg, rgba(255, 247, 244, 0.85), rgba(255, 255, 255, 0.85));
    animation: revealSection 0.35s ease;
}

@keyframes revealSection {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.after-send-text {
    margin-bottom: 12px;
    color: #785d67;
    font-size: 0.9rem;
}

.sr-only-code {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.otp-group {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.otp-box {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #edbfd0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #8f4f66;
    background: #fff;
}

.password-wrapper {
    margin-bottom: 12px;
    position: relative;
}

.password-wrapper input {
    padding-right: 42px;
    -webkit-appearance: none;
    appearance: none;
}

.toggle-password {
    position: absolute;
    right: 13px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    cursor: pointer;
    user-select: none;
    color: #9f7483;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    width: 34px;
    line-height: 1;
    z-index: 2;
}

/* Hide browser-native reveal controls so only one eye icon appears */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-strong-password-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

.password-requirements {
    background: #fff6f4;
    border: 1px solid #f4cdd8;
    border-radius: 12px;
    margin-bottom: 14px;
}

.password-requirements small {
    color: #795f68;
}

.password-requirements li {
    color: #aa7f8d;
}

.action-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.ghost-btn {
    padding: 0 14px;
    color: #9b5b71;
    background: #ffe9f1;
    border: 1px solid rgba(214, 106, 140, 0.3);
}

.ghost-btn:hover {
    transform: translateY(-1px);
    background: #ffdfe9;
}

.bottom-link {
    margin-top: 16px;
    margin-bottom: 0;
    color: #7e6972;
}

.bottom-link a {
    color: #934e67;
    font-weight: 700;
    text-decoration: none;
}

.bottom-link a:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    .auth-container {
        padding: 14px;
    }

    .forgot-card {
        border-radius: 22px;
        padding: 26px 18px;
    }

    .forgot-header h2 {
        font-size: 1.92rem;
    }

    .otp-group {
        gap: 6px;
    }

    .otp-box {
        height: 44px;
        font-size: 1.05rem;
    }

    .action-row {
        grid-template-columns: 1fr;
    }

    .ghost-btn {
        width: 100%;
    }
}
