{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background: #0a0a0b;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.04;
    background:
            radial-gradient(circle at 15% 15%, rgba(255, 107, 157, 0.2) 0%, transparent 40%),
            radial-gradient(circle at 85% 15%, rgba(74, 144, 226, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 50% 85%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
            linear-gradient(135deg, rgba(16, 16, 18, 0.8), rgba(10, 10, 11, 0.9));
    animation: backgroundFlow 25s ease-in-out infinite;
}

@keyframes backgroundFlow {
    0%, 100% {
        background-position: 0% 0%, 100% 0%, 50% 100%;
        opacity: 0.04;
    }
    33% {
        background-position: 20% 20%, 80% 20%, 30% 80%;
        opacity: 0.06;
    }
    66% {
        background-position: 80% 10%, 20% 30%, 70% 90%;
        opacity: 0.05;
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.logo {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: logoGlow 3s ease-in-out infinite;
}

.logo img {
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5)); }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 24px;
}

.forgot-password-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 520px;
    padding: 50px 40px;
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.forgot-password-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
    rgba(255, 107, 157, 0.8) 0%,
    rgba(212, 175, 55, 0.8) 25%,
    rgba(74, 144, 226, 0.8) 50%,
    rgba(212, 175, 55, 0.8) 75%,
    rgba(255, 107, 157, 0.8) 100%);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.card-header h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #ff6b9d 25%, #d4af37 50%, #4a90e2 75%, #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active .step-number {
    background: linear-gradient(135deg, #ff6b9d, #d4af37);
    color: white;
    border-color: rgba(255, 107, 157, 0.3);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.step-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.step.active .step-label {
    color: rgba(212, 175, 55, 0.9);
    font-weight: 600;
}

.step-content {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form {
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 28px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.input-group input.success {
    border-color: rgba(40, 167, 69, 0.6);
    background: rgba(40, 167, 69, 0.1);
}

.input-group input.error {
    border-color: rgba(220, 53, 69, 0.6);
    background: rgba(220, 53, 69, 0.1);
}

.input-hint {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2px;
}

.input-hint.success {
    color: rgba(40, 167, 69, 0.8);
}

.input-hint.error {
    color: rgba(220, 53, 69, 0.8);
}

.submit-btn, .back-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b9d, #d4af37);
    color: white;
    border: 1px solid rgba(255, 107, 157, 0.3);
    margin-bottom: 16px;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.4);
    background: linear-gradient(135deg, #ff8bb4, #e6c966);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.back-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.resend-btn {
    background: none;
    border: none;
    color: rgba(212, 175, 55, 0.8);
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    transition: color 0.3s ease;
}

.resend-btn:hover:not(:disabled) {
    color: rgba(212, 175, 55, 1);
}

.resend-btn:disabled {
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    text-decoration: none;
}

.verification-info, .success-info {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.verification-info p, .success-info p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.email-display {
    font-weight: 600;
    color: rgba(212, 175, 55, 0.9);
    font-size: 1.1rem;
}

.step-actions {
    margin-top: 24px;
}

.message {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 16px;
    font-weight: 500;
    text-align: center;
    animation: messageSlide 0.4s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: rgba(40, 167, 69, 0.15);
    color: rgba(40, 167, 69, 0.9);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.message.error {
    background: rgba(220, 53, 69, 0.15);
    color: rgba(220, 53, 69, 0.9);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.message.info {
    background: rgba(74, 144, 226, 0.15);
    color: rgba(74, 144, 226, 0.9);
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.card-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-link {
    color: rgba(212, 175, 55, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.login-link:hover {
    color: rgba(212, 175, 55, 1);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 16px;
    }

    .forgot-password-card {
        padding: 40px 24px;
    }

    .card-header h1 {
        font-size: 2.2rem;
    }

    .step-number {
        width: 36px;
        height: 36px;
    }

    .step-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    .forgot-password-card {
        padding: 32px 20px;
    }

    .card-header h1 {
        font-size: 1.8rem;
    }

    .input-group input {
        padding: 14px 16px;
    }

    .submit-btn, .back-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

html {
    scroll-behavior: smooth;
}