@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body.login_admin,
body.customers {
    background: url('../images/login_bg.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Inter', sans-serif !important;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
}

body.login_admin::before,
body.customers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.authentication-form-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px !important;
    padding-top: 0 !important;
    animation: fadeInScale 0.8s ease-out;
}

.authentication-form-wrapper .company-logo img {
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 5px !important;
    filter: brightness(0) invert(1) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3)) !important;
}

.authentication-form-wrapper h1 {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    margin-bottom: 10px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.authentication-form-wrapper p.tw-text-neutral-600 {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 30px !important;
}

.login_admin .tw-bg-white,
.login-form .panel_s {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border-radius: 24px !important;
}

.login_admin .control-label,
.login-form label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    font-size: 0.9rem;
}

.login_admin .form-control,
.login-form .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    height: auto !important;
    transition: all 0.3s ease;
}

.login_admin .form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
}

.login_admin .btn-primary,
.login-form .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.5) !important;
    transition: all 0.3s ease !important;
    color: #ffffff !important;
}

.login-form .btn-default {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px !important;
    transition: all 0.3s ease !important;
}

.login-form .btn-default:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.login_admin .btn-primary:hover,
.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6) !important;
}

.login_admin .text-muted,
.login_admin a.text-muted,
.login-form .text-muted,
.login-form a.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.3s ease;
}

.login_admin .text-muted:hover {
    color: #ffffff !important;
}

.login_admin .checkbox label {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Animations */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Custom Checkbox Style */
.login_admin .checkbox input[type="checkbox"] {
    accent-color: #6366f1;
}

/* Alert styling */
.login_admin .alert {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
}
/* Campos con icono integrado a la izquierda (pastilla gloss) */
.login_admin .auth-field {
    position: relative;
}

.login_admin .auth-field .auth-field-icon {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    border-radius: 9px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff 0%, #f2f4f7 45%, #dfe3e8 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 2px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Brillo superior tipo gloss */
.login_admin .auth-field .auth-field-icon::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 45%;
    border-radius: 8px 8px 12px 12px / 8px 8px 8px 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.25) 100%);
    pointer-events: none;
}

.login_admin .auth-field .auth-field-icon svg {
    width: 17px;
    height: 17px;
    display: block;
    position: relative;
    z-index: 1;
}

.login_admin .auth-field .form-control {
    padding-left: 50px !important;
}

.login_admin .auth-field:focus-within .auth-field-icon {
    color: #000000;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 45%, #e8ecf1 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.35),
        0 0 0 3px color-mix(in srgb, var(--auth-accent, #4bc3fd) 45%, transparent);
}

html[dir="rtl"] .login_admin .auth-field .auth-field-icon {
    left: auto;
    right: 8px;
}

html[dir="rtl"] .login_admin .auth-field .form-control {
    padding-left: 16px !important;
    padding-right: 50px !important;
}
