/* assets/style/shared/forgot_password.css - Password Recovery Page Styles */

#login {
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../../../bg/login_bg.jpg') no-repeat center center;
    background-size: cover;
    z-index: 2000;
}

#login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

#login_form_container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

#icons_login {
    text-align: center;
    margin-bottom: 30px;
}

#icons_login img {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

#input_login {
    position: relative;
    margin-bottom: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

#input_login:hover {
    border-color: #cbd5e1;
}

#input_login:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

#input_login img {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

#input_login:focus-within img {
    opacity: 1;
}

#input_login input {
    background: transparent;
    border: none;
    color: #333;
    width: 100%;
    outline: none;
    font-size: 15px;
    padding-left: 12px;
}

#input_login input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

/* Special styling for OTP input */
#rec_otp {
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 8px !important;
    text-align: center !important;
    color: #2563eb !important;
}

#rec_otp::placeholder {
    font-size: 14px !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
    color: #cbd5e1 !important;
}

/* Password input specific */
#new_pass, #conf_pass {
    font-weight: 500;
}

/* Submit button */
#submit {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    margin-top: 20px;
}

#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

#submit:active {
    transform: translateY(0);
}

/* Alert message styling */
#alert_login {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    min-height: 24px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
}

#alert_login[style*="opacity"] {
    opacity: 1 !important;
}

#alert_login:not(:empty) {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

#alert_login.success {
    background: #d1fae5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}

#alert_login.error {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}

#alert_login.info {
    background: #dbeafe !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}

/* Step indicator styling - optional */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

/* Back to login link */
.mt-4.text-center a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.mt-4.text-center a:hover {
    color: #2563eb;
    transform: translateX(-5px);
}

.mt-4.text-center a:before {
    content: '←';
    margin-right: 5px;
    opacity: 0;
    transition: all 0.3s ease;
}

.mt-4.text-center a:hover:before {
    opacity: 1;
    margin-right: 8px;
}

/* Loading state for submit button */
#submit.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

#submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form transitions */
#forgot_step_1, #forgot_step_2, #forgot_step_3 {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #login_form_container {
        max-width: 90%;
        padding: 30px 20px;
        margin: 20px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    #icons_login img {
        height: 60px;
    }

    #rec_otp {
        font-size: 20px !important;
        letter-spacing: 5px !important;
    }
}

@media (max-width: 480px) {
    #login_form_container {
        padding: 25px 15px;
    }

    #input_login {
        padding: 10px 15px;
    }

    #submit {
        padding: 12px;
    }

    #rec_otp {
        font-size: 18px !important;
        letter-spacing: 4px !important;
    }
}

/* Dark theme version - uncomment if you prefer dark theme */
/*
#login_form_container {
    background: rgba(21, 21, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header h2 {
    color: white;
}

.login-header p {
    color: #94a3b8;
}

#input_login {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

#input_login input {
    color: white;
}

#input_login input::placeholder {
    color: #64748b;
}

.mt-4.text-center a {
    color: #94a3b8;
}

.mt-4.text-center a:hover {
    color: white;
}
*/