/* Ultra-Modern Business Administrative Login */

:root {
    --brand-blue: #0084FE;
    --brand-dark: #1D3FAB;
    --bg-dark: #020617;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --input-bg: #f1f5f9;
    --input-border: #e2e8f0;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

body.login-page {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: var(--text-primary);
    overflow-x: hidden;
}

.login-wrapper {
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.login-main-container {
    flex: 1;
    display: flex;
    width: 100%;
    min-height: calc(100vh - 85px);
}

/* --- Branding Column (Left) --- */
.login-branding {
    position: relative;
    display: none;
    /* Hidden on mobile */
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 40px;
    align-items: center;
    overflow: hidden;
    color: white;
}

.branding-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Imagen al 100% de opacidad */
    z-index: 1;
}

.branding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.7) 0%, rgba(29, 63, 171, 0.5) 100%);
    /* Overlay mucho más transparente */
    z-index: 2;
}

.branding-content {
    position: relative;
    z-index: 10;
    margin: auto 0;
    /* Centrado vertical */
    text-align: left;
    /* Alineado a la izquierda */
}

.branding-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.05em;
}

.text-highlight {
    color: var(--brand-blue);
}

.branding-text p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 480px;
}

.branding-footer-info {
    width: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
    /* Alineado a la izquierda */
    gap: 60px;
    margin-top: 40px;
    /* Separación si el contenido crece */
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Alineado a la izquierda */
    gap: 4px;
}

.info-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
}

.info-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* --- Right Form Column --- */
.login-form-area {
    flex: 1;
    width: 100%;
    padding: 60px 24px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    background-size: cover;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: transparent;
    /* Transparente para usar el fondo del área */
    animation: slideInUp 0.8s var(--ease-out-expo);
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-header {
    margin-bottom: 48px;
}

.form-header h1 {
    font-size: 1.5rem;
    /* Reduced from 1.85rem */
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
    color: var(--bg-dark);
    text-align: center;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    /* Reduced from 1.05rem */
    text-align: center;
}

/* --- Modern Input Fields --- */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Reduced from 24px */
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-field label {
    font-size: 0.75rem;
    /* Reduced from 0.85rem */
    font-weight: 600;
    color: var(--text-secondary);
    padding-left: 8px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    transition: color 0.3s;
}

.input-container input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    /* Reduced padding */
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    /* Reduced font-size */
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
}

.input-container input:focus {
    outline: none;
    background: white;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(0, 132, 254, 0.1);
}

.input-container:focus-within .input-icon {
    color: var(--brand-blue);
}

.password-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: 0.2s;
}

.password-eye:hover {
    color: var(--brand-blue);
    background: rgba(0, 132, 254, 0.05);
}

.form-help {
    display: flex;
    justify-content: flex-end;
}

.forgot-link {
    font-size: 0.75rem;
    /* Reduced from 0.85rem */
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* --- Primary Button --- */
.auth-button {
    margin-top: 8px;
    height: 50px;
    /* Reduced from 60px */
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    /* Reduced from 1.05rem */
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 10px 25px -5px rgba(29, 63, 171, 0.4);
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px -10px rgba(29, 63, 171, 0.5);
    filter: brightness(1.1);
}

.auth-button:active {
    transform: translateY(0);
}

.loader-circle {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: rotate 0.8s infinite linear;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.login-meta-footer {
    position: relative;
    margin-top: 60px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.6;
}







/* --- Responsive Adjustments --- */

/*// Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .login-form-area {
        padding: 60px 40px;
    }
}

/* // Medium devices (tablets, 768px and up)
 */
@media (min-width: 768px) {
    .login-main-container {
        padding: 40px;
    }

    .login-card {
        background: white;
        padding: 40px;
        border-radius: 24px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    }
}

/* // Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    body.login-page {
        overflow: hidden;
    }

    .login-main-container {
        padding: 0;
        flex-direction: row;
    }

    .login-branding {
        display: flex;
        flex: 1;
        padding: 80px 60px;
    }

    .branding-text h2 {
        font-size: 1rem;
    }

    .login-form-area {
        flex: 1;
        background-color: transparent;
        background-image: url('../logo_bk2.svg');
        background-position: left center;
        background-repeat: no-repeat;
        background-size: 150%;
        padding: 80px;
        margin-left: -10rem;
        /* Reduced overlap for 50/50 split */
    }

    .login-card {
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .form-header h1 {
        font-size: 2.25rem;
        text-align: left;
    }

    .form-header p {
        text-align: left;
    }

    .login-meta-footer {
        position: absolute;
        bottom: 40px;
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* // X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .login-branding {
        padding: 40px 80px;
    }

    .branding-text h2 {
        font-size: 1.2rem;
    }

    .login-form-area {
        padding: 60px;
        margin-left: -5rem;
    }

    .login-card {
        max-width: 330px;
    }

    .branding-text p {
        font-size: 1rem;
    }

    .info-value {
        font-size: 0.7rem;
    }

    .info-label {
        font-size: 0.8rem;
    }

    .form-header h1 {
        font-size: 1.2rem;
        text-align: center;
    }

    .form-header p {
        font-size: 0.9rem;
        text-align: center;
    }

    .input-field label {
        font-size: 0.7rem;
    }

    .input-container input {
        font-size: 0.8rem;
        padding: 10px 16px 10px 48px;

    }

    .btn-label {
        font-size: 0.8rem;
    }

    .auth-button {
        height: 39px;
    }

    .forgot-link {
        font-size: 0.7rem;
    }

    .login-meta-footer {
        font-size: 0.6rem;
    }
}

/* // XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .login-form-area {
        background-size: 170%;
        padding: 0;

        margin-left: -17rem;
    }
}

/* // 2k devices */
@media (min-width: 1900px) {
    .branding-text h2 {
        font-size: 1.5rem;
    }

    .branding-text p {
        font-size: 1.2rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .info-label {
        font-size: 0.9rem;
    }

    .form-header h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .form-header p {
        font-size: 1rem;
        text-align: center;
    }

    .input-field label {
        font-size: 0.8rem;
    }

    .input-container input {
        font-size: 0.9rem;
        padding: 12px 16px 12px 48px;

    }

    .btn-label {
        font-size: 0.9rem;
    }

    .auth-button {
        height: 45px;
    }

    .forgot-link {
        font-size: 0.8rem;
    }

    .login-meta-footer {
        font-size: 0.7rem;
    }
}

/* // 4k devices */
@media (min-width: 3800px) {

    .branding-content {
        width: 45rem;
    }

    .login-card {
        max-width: 500px;
    }





    .branding-text h2 {
        font-size: 2.5rem;
    }

    .branding-text p {
        font-size: 1.5rem;
    }

    .info-value {
        font-size: 1.2rem;
    }

    .info-label {
        font-size: 1.1rem;
    }

    .form-header h1 {
        font-size: 2rem;
        text-align: center;
    }

    .form-header p {
        font-size: 1.3rem;
        text-align: center;
    }

    .input-field label {
        font-size: 1rem;
    }

    .input-container input {
        font-size: 1.2rem;
        padding: 15px 20px 15px 55px;

    }

    .btn-label {
        font-size: 1.2rem;
    }

    .auth-button {
        height: 55px;
    }

    .forgot-link {
        font-size: 1rem;
    }

    .login-meta-footer {
        font-size: 0.9rem;
    }
}