* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Three.js Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.forgot-container {
    width: 100%;
    max-width: 460px;
    margin: 60px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.forgot-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forgot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.logo-container {
    margin-bottom: 32px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
}

.logo-circle img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-container i {
    font-size: 32px;
    color: #a5f3fc;
}

.forgot-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.forgot-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.5;
}

.highlight {
    color: #a5f3fc;
    font-weight: 600;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.forgot-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    font-family: inherit;
    color: white;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #60a5fa;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.fa-regular {
    position: absolute;
    top: 48px;
    right: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    transition: color 0.3s;
}

.fa-regular:hover {
    color: white;
}

/* Code Inputs */
.code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.code-input {
    width: 50px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    color: white;
}

.code-input:focus {
    outline: none;
    border-color: #60a5fa;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Password Requirements */
.password-requirements {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.requirement-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.requirements-list li:last-child {
    margin-bottom: 0;
}

.requirements-list li i {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s;
}

.requirements-list li.valid i {
    color: #10b981;
}

.requirements-list li.valid span {
    color: #10b981;
}

/* Buttons */
.forgot-button {
    display: inline-block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
    background: linear-gradient(135deg, #458FF6, #2563EB);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forgot-button:hover {
    background: linear-gradient(135deg, #2563EB, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.forgot-button:active {
    transform: translateY(0);
}

.forgot-button:disabled {
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}

/* Links */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.95rem;
    color: #a5f3fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: #ffffff;
}

.back-link i {
    font-size: 14px;
}

.resend-container {
    text-align: center;
    margin-top: 24px;
}

.resend-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.resend-link {
    color: #a5f3fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.resend-link:hover {
    color: #ffffff;
}

.resend-link.disabled {
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    pointer-events: none;
}

.timer-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.timer-text.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 480px) {
    .forgot-card {
        padding: 36px 28px;
        border-radius: 20px;
    }

    .forgot-title {
        font-size: 1.75rem;
    }

    .logo-circle, .icon-container {
        width: 70px;
        height: 70px;
    }

    .icon-container i {
        font-size: 28px;
    }

    .code-input {
        width: 45px;
        height: 52px;
        font-size: 20px;
    }

    .code-inputs {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .forgot-container {
        margin: 40px auto;
    }
    
    .forgot-card {
        padding: 32px 24px;
    }
}