.forgot-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
    padding: 2rem;
}

.forgot-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 100%;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.forgot-box {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.forgot-step {
    width: 100%;
    animation: fadeInOut 0.5s ease;
}

.forgot-form-container {
    text-align: center;
    width: 100%;
}

.step-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-header .subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group .required {
    color: #e74c3c;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.input-wrapper input::placeholder {
    color: #999;
}

.input-wrapper input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    min-height: 1.2rem;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 2.8rem;
}

.emoji-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    transition: all 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0.8rem;
    position: absolute;
    z-index: 2;
}

.emoji-btn:hover {
    transform: scale(1.2);
}

.emoji-btn:active {
    transform: scale(0.95);
}

.timer-section {
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timer-section p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
}

.timer {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.timer.warning {
    color: #f39c12;
}

.timer.danger {
    color: #e74c3c;
    animation: blink 0.5s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.5;
    }
}

.resend-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.resend-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.password-strength {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.password-strength p {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.strength-level {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-level.weak {
    width: 33%;
    background: #e74c3c;
}

.strength-level.medium {
    width: 66%;
    background: #f39c12;
}

.strength-level.strong {
    width: 100%;
    background: #27ae60;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.back-link {
    margin-bottom: 1rem;
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.back-link a:hover {
    color: var(--secondary-color);
    transform: translateX(-3px);
}

.forgot-side {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.side-content p {
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
}

.security-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.security-features li i {
    font-size: 1.3rem;
    min-width: 1.3rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .forgot-wrapper {
        grid-template-columns: 1fr;
    }

    .forgot-side {
        display: none;
    }

    .forgot-box {
        padding: 2rem;
    }

    .step-header h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .forgot-container {
        padding: 1.5rem;
    }

    .forgot-wrapper {
        border-radius: 12px;
    }

    .forgot-box {
        padding: 1.8rem;
    }

    .step-header h1 {
        font-size: 1.5rem;
    }

    .step-header .subtitle {
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .input-wrapper input {
        padding: 0.8rem 0.9rem 0.8rem 2.3rem;
        font-size: 0.9rem;
    }

    .emoji-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
        right: 0.7rem;
    }

    .timer-section {
        flex-direction: column;
        align-items: stretch;
    }

    .timer-section p {
        text-align: center;
    }

    .resend-btn {
        justify-content: center;
    }

    .submit-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .forgot-container {
        min-height: calc(100vh - 80px);
        padding: 1rem;
    }

    .forgot-wrapper {
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .forgot-box {
        padding: 1.5rem 1.2rem;
    }

    .step-header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .step-header .subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.9rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .input-wrapper input {
        padding: 0.75rem 0.8rem 0.75rem 2.2rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .emoji-btn {
        width: 32px;
        height: 32px;
        font-size: 22px;
        right: 0.6rem;
    }

    .timer-section {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .timer-section p {
        font-size: 0.8rem;
    }

    .resend-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .password-strength {
        margin-bottom: 1rem;
        padding: 0.8rem;
    }

    .password-strength p {
        font-size: 0.85rem;
    }

    .submit-btn {
        padding: 0.85rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        gap: 0.4rem;
    }

    .back-link {
        margin-bottom: 0.8rem;
    }

    .back-link a {
        font-size: 0.8rem;
    }
}
