/* assets/style/shared/login.css - Complete Login 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;
}

#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;
    cursor: pointer;
}

#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;
}

#login_eye {
    cursor: pointer;
    transition: all 0.3s ease;
}

#login_eye:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

#login_btns {
    margin-top: 30px;
}

#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);
}

#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

#submit:active {
    transform: translateY(0);
}

#alert_login {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    min-height: 24px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#alert_login.error {
    color: #dc2626;
    background: #fee2e2;
}

#alert_login.success {
    color: #059669;
    background: #d1fae5;
}

.brand-footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-footer:hover {
    opacity: 1;
}

.brand-footer img {
    height: 35px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.brand-footer img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Forgot password link */
.text-muted {
    color: #64748b !important;
    font-size: 14px;
    transition: color 0.3s ease;
}

.text-muted:hover {
    color: #2563eb !important;
    text-decoration: underline !important;
}

/* 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;
    }

    .brand-footer {
        gap: 20px;
    }

    .brand-footer img {
        height: 30px;
    }
}

@media (max-width: 480px) {
    #login_form_container {
        padding: 25px 15px;
    }

    #input_login {
        padding: 10px 15px;
    }

    #submit {
        padding: 12px;
    }

    .brand-footer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* 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); }
}

/* Password visibility toggle */
.password-toggle {
    cursor: pointer;
    user-select: none;
}

/* Input validation styles */
#input_login.error {
    border-color: #dc2626;
    background: #fef2f2;
}

#input_login.success {
    border-color: #059669;
    background: #f0fdf4;
}

/* Remember me checkbox - if you want to add it later */
.remember-me {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #2563eb;
}

.remember-me label {
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
}