/* ════════════════════════════════════════════════════════════════════
   resetpassword.css — Forgot password page styles
   ────────────────────────────────────────────────────────────────────
   Loaded ALONGSIDE main style.css.
   ════════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════════
   1. PAGE WRAPPER
   ════════════════════════════════════════════════════════════════════ */
.reset-page {
    padding: 30px 0 60px;
    background:
        radial-gradient(ellipse 700px 350px at 50% 0%, var(--primary-50) 0%, transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--bg-section) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}


/* ════════════════════════════════════════════════════════════════════
   2. CARD — narrow, focused, with decorative pattern
   ════════════════════════════════════════════════════════════════════ */
.reset-card {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
    padding: 50px 40px 36px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(29, 111, 164, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    isolation: isolate;
}

/* Decorative dots floating in card bg */
.reset-card-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.reset-dot {
    position: absolute;
    border-radius: 50%;
}
.reset-dot-1 {
    top: 10%;
    right: 8%;
    width: 8px;
    height: 8px;
    background: var(--primary-100);
}
.reset-dot-2 {
    top: 25%;
    left: 12%;
    width: 12px;
    height: 12px;
    background: var(--accent-orange);
    opacity: 0.3;
}
.reset-dot-3 {
    bottom: 20%;
    right: 15%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    opacity: 0.4;
}


/* ════════════════════════════════════════════════════════════════════
   3. ICON STAGE — lock + floating key
   ════════════════════════════════════════════════════════════════════ */
.reset-icon-stage {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 24px;
}

.reset-icon-main {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 14px 32px rgba(29, 111, 164, 0.32);
    position: relative;
}
.reset-icon-main::before {
    /* Inner ring for depth */
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.25);
}

/* Floating key beside lock */
.reset-icon-key {
    position: absolute;
    top: -8px;
    left: -16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), #c8651e);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 16px rgba(224, 123, 60, 0.4);
    transform: rotate(-15deg);
    animation: resetKeyFloat 3s ease-in-out infinite;
}

@keyframes resetKeyFloat {
    0%, 100% {
        transform: rotate(-15deg) translateY(0);
    }
    50% {
        transform: rotate(-25deg) translateY(-6px);
    }
}


/* ════════════════════════════════════════════════════════════════════
   4. HEADER (title + subtitle)
   ════════════════════════════════════════════════════════════════════ */
.reset-header {
    text-align: center;
    margin-bottom: 28px;
}
.reset-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.6rem, 3vw, 1.9rem);
    font-weight: 900;
    color: var(--gray-900);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.reset-subtitle {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--gray-600);
    margin: 0;
}


/* ════════════════════════════════════════════════════════════════════
   5. FORM
   ════════════════════════════════════════════════════════════════════ */
.reset-form {
    margin: 0 0 24px;
}
.reset-field {
    margin-bottom: 20px;
}
.reset-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 8px;
}
.reset-label i {
    color: var(--primary);
    font-size: 1rem;
}

.reset-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: #fff;
    color: var(--gray-900);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.25s ease;
}
.reset-input::placeholder {
    color: var(--gray-400);
}
.reset-input:hover {
    border-color: var(--gray-300);
}
.reset-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(29, 111, 164, 0.12);
    transform: translateY(-1px);
}


/* ════════════════════════════════════════════════════════════════════
   6. SUBMIT BUTTON — with airplane animation on hover
   ════════════════════════════════════════════════════════════════════ */
.reset-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 22px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(29, 111, 164, 0.3);
    position: relative;
    overflow: hidden;
}
.reset-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.reset-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(29, 111, 164, 0.42);
}
.reset-submit:hover::before {
    opacity: 1;
}
.reset-submit > * {
    position: relative;
    z-index: 1;
}
.reset-submit i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.reset-submit:hover i {
    transform: translate(-4px, -2px) rotate(-12deg);
}


/* ════════════════════════════════════════════════════════════════════
   7. FOOTER (login/register links)
   ════════════════════════════════════════════════════════════════════ */
.reset-footer {
    padding-top: 22px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.reset-footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--gray-600);
}
.reset-footer-row i {
    color: var(--primary);
    font-size: 1rem;
}
.reset-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.reset-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}


/* ════════════════════════════════════════════════════════════════════
   8. RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .reset-page {
        padding: 20px 0 44px;
    }
    .reset-card {
        padding: 40px 24px 28px;
        border-radius: 16px;
    }
    .reset-icon-stage,
    .reset-icon-main {
        width: 90px;
        height: 90px;
    }
    .reset-icon-main {
        font-size: 2.4rem;
    }
    .reset-icon-key {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .reset-footer-row {
        flex-wrap: wrap;
    }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reset-icon-key {
        animation: none;
    }
    .reset-input,
    .reset-submit,
    .reset-link,
    .reset-submit i {
        transition: none;
    }
    .reset-input:focus,
    .reset-submit:hover {
        transform: none;
    }
}
