/* Forgot Password Specific Styles */

.forgot-container {
    min-height: 600px;
}

.form-box {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

/* Icon Wrapper */
.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-wrapper:hover::before {
    opacity: 0.1;
}

.icon-wrapper i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    z-index: 1;
    animation: iconPulse 2s infinite ease-in-out;
}

.icon-wrapper.success i {
    color: #10b981;
}

.icon-wrapper.animated i {
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Code Input Styling */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 1.5rem 0;
}

.code-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    caret-color: var(--accent-primary);
}

.code-input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: scale(1.05);
}

.code-input.filled {
    border-color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.1);
}

.code-input.error {
    border-color: var(--error);
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.resend-text {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.resend-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.resend-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.resend-link.disabled {
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0.5;
}

.timer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Button with Icon */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-primary.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Success State */
.step-success .subtitle {
    color: var(--text-secondary);
    max-width: 350px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Enhanced Toggle Link */
.toggle-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.toggle-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.toggle-link:hover i {
    transform: translateX(-3px);
}

/* Responsive Design */
@media (max-width: 480px) {
    .forgot-container {
        min-height: 550px;
    }

    .form-box {
        padding: 40px 25px;
    }

    .code-input {
        width: 45px;
        height: 50px;
        font-size: 1.3rem;
    }

    .code-inputs {
        gap: 8px;
    }

    .icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .icon-wrapper i {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #10b981;
}

.toast.error i {
    color: var(--error);
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.9rem;
}