main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px;
    padding-top: 130px!important;
    background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark-color) 100%);
    position: relative;
    overflow: hidden;
}

.forgot-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.forgot-card {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--border-radius);
    padding: 20px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.forgot-card:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.forgot-header {
    text-align: center;
    margin-bottom: 30px;
}

.forgot-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.forgot-logo i {
    color: var(--secondary-color);
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.4));
}

.forgot-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.forgot-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.forgot-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* مراحل بازیابی */
.forgot-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
}

.step.completed .step-number {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #4caf50;
}

.step-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.step.active .step-label {
    color: white;
    font-weight: 500;
}

.step-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    flex: 1;
    margin: 0 15px;
    position: relative;
    top: -20px;
}

.forgot-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.code-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
    direction: ltr;
}

.code-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    transition: var(--transition);
}

.code-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.code-input.filled {
    border-color: var(--secondary-color);
    background: rgba(255, 152, 0, 0.1);
}

.resend-code {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.resend-code a {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.resend-code a:hover {
    color: white;
    text-decoration: underline;
}

.timer {
    color: var(--secondary-color);
    font-weight: 600;
}

.forgot-button {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.forgot-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.forgot-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* نمایش قدرت رمز عبور */
.password-strength {
    margin-top: 8px;
    font-size: 0.85rem;
}

.strength-meter {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.strength-weak {
    background: #ff4757;
    width: 25%;
}

.strength-medium {
    background: #ffa502;
    width: 50%;
}

.strength-strong {
    background: #2ed573;
    width: 75%;
}

.strength-very-strong {
    background: #1e90ff;
    width: 100%;
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--secondary-color);
}

.forgot-message {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    margin: 20px 0!important;
}

.forgot-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.error-message {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #f8d7da;
}

.success-message {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #d4edda;
}

.info-message {
    background: rgba(26, 115, 232, 0.2);
    border: 1px solid rgba(26, 115, 232, 0.4);
    color: #90caf9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 25px;
}

.forgot-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-right: 5px;
}

.forgot-footer a:hover {
    color: white;
    text-decoration: underline;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.floating-icon {
    position: absolute;
    z-index: 0;
    color: rgba(255, 255, 255, 0.05);
    font-size: 8rem;
    animation: float 8s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    bottom: 15%;
    left: 10%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    top: 40%;
    left: 15%;
    animation-delay: 4s;
}

@media (max-width: 768px) {
    .forgot-card {
        padding: 30px 25px;
        margin: 0 15px;
    }

    .forgot-title {
        font-size: 1.6rem;
    }

    .code-input {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .forgot-actions {
        flex-direction: column;
    }

    .step-line {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    main {
        padding: 80px 0 40px!important;
    }

    .forgot-card {
        padding: 25px 20px;
    }

    .forgot-title {
        font-size: 1.4rem;
    }

    .forgot-icon {
        font-size: 3rem;
    }

    .code-input {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-line {
        margin-top: 40px;
    }

    .step-label {
        display: none;
    }
}