﻿/* ===== FORGOT PASSWORD PAGE STYLES ===== */
.forgot-password-wrapper {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

    .forgot-password-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="forgot-pattern" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="20" cy="10" r="0.5" fill="rgba(40,167,69,0.05)"/><circle cx="60" cy="5" r="0.3" fill="rgba(40,167,69,0.03)"/><circle cx="80" cy="15" r="0.4" fill="rgba(40,167,69,0.04)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23forgot-pattern)"/></svg>');
        opacity: 0.6;
        pointer-events: none;
    }

.forgot-password-container {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 20px;
}

.forgot-password-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(40, 167, 69, 0.1), 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(40, 167, 69, 0.1);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: slideInUp 0.6s ease-out forwards;
}

    .forgot-password-card.entrance-complete {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .forgot-password-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 100px rgba(40, 167, 69, 0.15), 0 15px 40px rgba(0, 0, 0, 0.08);
    }

/* ===== FORGOT PASSWORD HEADER ===== */
.forgot-password-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .forgot-password-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 30px 30px;
        animation: float 25s linear infinite;
    }

.header-icon {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    animation: iconBounce 2s ease-in-out infinite;
}

    .header-icon i {
        font-size: 36px;
        color: var(--white);
    }

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseEffect 2s ease-out infinite;
}

.forgot-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    position: relative;
    z-index: 2;
    animation: titleSlide 0.6s ease-out 0.3s both;
}

.forgot-subtitle {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 2;
    animation: subtitleSlide 0.6s ease-out 0.4s both;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    background: rgba(248, 249, 250, 0.8);
    border-bottom: 1px solid rgba(40, 167, 69, 0.1);
    gap: 20px;
    animation: stepsSlide 0.6s ease-out 0.5s both;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.step.active .step-number {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.step.completed .step-number {
    background: var(--primary-green);
    color: var(--white);
}

    .step.completed .step-number::before {
        content: '✓';
        font-weight: 900;
    }

.step-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: all 0.3s ease;
}

.step.active .step-text {
    color: var(--primary-green);
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e9ecef;
    transition: all 0.3s ease;
}

.step.completed + .step-line {
    background: var(--primary-green);
}

/* ===== FORGOT PASSWORD BODY ===== */
.forgot-password-body {
    padding: 40px;
    animation: bodySlide 0.6s ease-out 0.6s both;
}

/* ===== INFO BOX ===== */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
    border: 1px solid rgba(23, 162, 184, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

    .info-icon i {
        font-size: 16px;
        color: var(--white);
    }

.info-content h6 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.info-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== FORM CONTROLS ===== */
.form-floating {
    position: relative;
    margin-bottom: 20px;
}

    .form-floating .form-control {
        height: 60px;
        border: 2px solid rgba(40, 167, 69, 0.15);
        border-radius: 12px;
        padding: 20px 50px 6px 16px;
        font-size: 16px;
        transition: all 0.3s ease;
        background: rgba(248, 249, 250, 0.5);
        backdrop-filter: blur(5px);
    }

        .form-floating .form-control:focus {
            border-color: var(--primary-green);
            box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
            background: var(--white);
            transform: translateY(-2px);
        }

        .form-floating .form-control.valid {
            border-color: var(--success);
            background: rgba(40, 167, 69, 0.05);
        }

        .form-floating .form-control.invalid {
            border-color: var(--error);
            background: rgba(220, 53, 69, 0.05);
        }

        .form-floating .form-control:not(:placeholder-shown) {
            padding-top: 24px;
            padding-bottom: 8px;
        }

    .form-floating label {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        padding: 20px 16px;
        pointer-events: none;
        border: 1px solid transparent;
        transform-origin: 0 0;
        transition: all 0.3s ease;
        color: var(--text-muted);
        font-weight: 500;
    }

    .form-floating .form-control:focus ~ label,
    .form-floating .form-control:not(:placeholder-shown) ~ label {
        opacity: 0.75;
        transform: scale(0.85) translateY(-8px) translateX(2px);
        color: var(--primary-green);
        font-weight: 600;
    }

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 5;
}

.form-floating .form-control:focus + .input-icon {
    color: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

/* ===== EMAIL STATUS ===== */
.email-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInScale 0.3s ease;
}

/* ===== HELP TEXT ===== */
.help-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 30px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

    .help-text i {
        color: #ffc107;
        margin-top: 2px;
        flex-shrink: 0;
    }

/* ===== SUBMIT BUTTON ===== */
.btn-send-reset {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

    .btn-send-reset::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .btn-send-reset:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
        background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
    }

        .btn-send-reset:hover::before {
            left: 100%;
        }

    .btn-send-reset:active {
        transform: translateY(0);
    }

    .btn-send-reset.loading {
        pointer-events: none;
        opacity: 0.8;
    }

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s linear infinite;
}

/* ===== SECURITY NOTICE ===== */
.security-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(40, 167, 69, 0.05);
    border: 1px solid rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.notice-icon {
    color: var(--primary-green);
    font-size: 16px;
    flex-shrink: 0;
}

.notice-content strong {
    color: var(--text-dark);
}

/* ===== FORGOT PASSWORD FOOTER ===== */
.forgot-password-footer {
    background: rgba(248, 249, 250, 0.8);
    padding: 24px 40px;
    border-top: 1px solid rgba(40, 167, 69, 0.1);
    animation: footerSlide 0.6s ease-out 0.7s both;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

    .footer-link:hover {
        background: rgba(40, 167, 69, 0.1);
        transform: translateY(-1px);
        text-decoration: none;
        color: var(--primary-green-dark);
        border-color: rgba(40, 167, 69, 0.2);
    }

    .footer-link.primary {
        background: rgba(40, 167, 69, 0.1);
        border-color: rgba(40, 167, 69, 0.2);
    }

    .footer-link i {
        font-size: 12px;
    }

/* ===== SUPPORT SECTION ===== */
.support-section {
    text-align: center;
    padding: 20px;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(40, 167, 69, 0.1);
    border-radius: 12px;
}

.support-text {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    font-weight: 600;
}

.support-options {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-green);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .support-link:hover {
        background: rgba(23, 162, 184, 0.1);
        transform: translateY(-1px);
        text-decoration: none;
        color: var(--accent-green);
    }

    .support-link i {
        font-size: 11px;
    }

/* ===== VALIDATION STYLES ===== */
.validation-summary {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    padding: 16px;
    margin-bottom: 24px;
    font-weight: 500;
}

.field-validation-error {
    color: var(--error);
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
    display: block;
}

/* ===== DECORATION ELEMENTS ===== */
.decoration-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

    .floating-shape.animate {
        opacity: 0.6;
        transform: translateY(0);
        animation: floatShape 8s ease-in-out infinite;
    }

    .floating-shape i {
        font-size: 24px;
        color: var(--primary-green);
    }

.shape-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(40, 167, 69, 0.04));
    animation: float 20s linear infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 25%;
    right: 5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 8%;
    animation-delay: 7s;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 25%;
    animation-delay: 14s;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stepsSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bodySlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes footerSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes pulseEffect {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-10px);
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }

    33% {
        transform: translateY(-15px) rotate(120deg);
        opacity: 0.4;
    }

    66% {
        transform: translateY(8px) rotate(240deg);
        opacity: 0.7;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .forgot-password-wrapper {
        padding: 30px 0;
        min-height: calc(100vh - 160px);
    }

    .forgot-password-container {
        padding: 0 16px;
    }

    .forgot-password-card {
        border-radius: 20px;
    }

    .forgot-password-header,
    .forgot-password-body,
    .forgot-password-footer {
        padding: 24px;
    }

    .process-steps {
        padding: 20px 24px;
        gap: 12px;
    }

    .step-line {
        width: 20px;
    }

    .header-icon {
        width: 70px;
        height: 70px;
    }

        .header-icon i {
            font-size: 28px;
        }

    .icon-pulse {
        width: 90px;
        height: 90px;
    }

    .forgot-title {
        font-size: 26px;
    }

    .forgot-subtitle {
        font-size: 14px;
    }

    .form-floating .form-control {
        height: 56px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn-send-reset {
        height: 52px;
        font-size: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .support-options {
        flex-direction: column;
        gap: 8px;
    }

    .floating-shape {
        width: 50px;
        height: 50px;
    }

        .floating-shape i {
            font-size: 18px;
        }

    .decoration-circle {
        display: none;
    }
}

@media (max-width: 576px) {
    .forgot-password-wrapper {
        padding: 20px 0;
    }

    .process-steps {
        gap: 8px;
    }

    .step-text {
        font-size: 10px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .info-box {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .floating-shape {
        display: none;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn-send-reset:focus,
.footer-link:focus,
.support-link:focus {
    outline: 3px solid rgba(40, 167, 69, 0.5);
    outline-offset: 2px;
}

/* ===== EMAIL SUGGESTION STYLES ===== */
.email-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0 16px 0;
    font-size: 14px;
    color: var(--text-dark);
    animation: slideInDown 0.3s ease;
}

    .email-suggestion i {
        color: #ffc107;
        flex-shrink: 0;
    }

    .email-suggestion strong {
        color: var(--primary-green);
        font-weight: 700;
    }

.btn-suggestion {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

    .btn-suggestion:hover {
        background: var(--primary-green-dark);
        transform: translateY(-1px);
    }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 576px) {
    .email-suggestion {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .btn-suggestion {
        margin-left: 0;
        align-self: center;
    }
}
