/* ============================================================
   ESTILOS DE LOGIN PROFESIONAL - LABORATORIO CLÍNICO
   ============================================================ */

:root {
    --primary-color: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --accent-color: #0ea5e9;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-card: 0 15px 35px rgba(2, 132, 199, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    --radius-card: 20px;
    --radius-input: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

body {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 15% 15%, rgba(2, 132, 199, 0.1) 0px, transparent 50%),
        radial-gradient(at 85% 85%, rgba(14, 165, 233, 0.08) 0px, transparent 50%);
    padding: 30px 20px;
    color: var(--text-dark);
}

.login-wrapper {
    width: 100%;
    max-width: 960px;
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* ============================================================ */
/* COLUMNA IZQUIERDA (INFORMACIÓN / BRANDING) */
/* ============================================================ */

.login-info-side {
    background: linear-gradient(135deg, #0284c7, #075985);
    padding: 50px 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.login-info-side::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.brand-badge i {
    font-size: 1.6rem;
    color: #7dd3fc;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 12px;
}

.info-hero-text h1 {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
}

.info-hero-text p {
    font-size: 0.96rem;
    color: #e0f2fe;
    line-height: 1.6;
}

.info-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.highlight-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7dd3fc;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.highlight-item strong {
    font-size: 0.95rem;
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.highlight-item p {
    font-size: 0.85rem;
    color: #bae6fd;
    line-height: 1.4;
    margin: 0;
}

.info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: #bae6fd;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: #ffffff;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================================ */
/* COLUMNA DERECHA (FORMULARIO CON ESPACIADO GENEROSO) */
/* ============================================================ */

.login-form-side {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.form-title-wrap {
    margin-bottom: 30px;
}

.form-title-wrap h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-title-wrap p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Form Fields */
.form-field-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.field-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.field-input-box input {
    width: 100%;
    padding: 13px 16px 13px 46px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-input);
    font-size: 0.96rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.25s ease;
    background: #f8fafc;
}

.field-input-box input:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15);
}

.field-input-box input:focus ~ .field-icon {
    color: var(--primary-color);
}

.btn-toggle-eye {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-toggle-eye:hover {
    color: var(--primary-color);
}

/* Botón de Envío */
.btn-submit-login {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-input);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.25s ease;
}

.btn-submit-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.45);
}

.btn-submit-login:active {
    transform: translateY(0);
}

/* Enlaces Inferiores con Buen Espacio */
.form-bottom-links {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.register-prompt {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.register-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.register-prompt a:hover {
    text-decoration: underline;
}

.link-return-home {
    font-size: 0.88rem;
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.link-return-home:hover {
    color: var(--primary-color);
}

/* ============================================================ */
/* RESPONSIVIDAD (Tablets y Smartphones) */
/* ============================================================ */

@media (max-width: 860px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .login-info-side {
        padding: 35px 30px;
        text-align: center;
        align-items: center;
    }

    .info-highlights {
        display: none;
    }

    .info-footer {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .login-form-side {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .login-form-side {
        padding: 30px 20px;
    }

    .form-title-wrap h2 {
        font-size: 1.5rem;
    }

    .form-field-group {
        margin-bottom: 18px;
    }
}
