/* ============================================================
   ESTILOS DE REGISTRO - 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);
}

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

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

/* Columna Izquierda */
.register-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;
}

.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 */
.register-form-side {
    padding: 45px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    overflow-y: auto;
}

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

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

.form-title-wrap p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

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

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

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

.field-input-box input[readonly] {
    background-color: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
    cursor: default;
}

.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);
}

.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);
}

.dni-status-hint {
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 4px;
    display: block;
    min-height: 18px;
    transition: all 0.2s ease;
}

.btn-submit-register {
    width: 100%;
    padding: 13px 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-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.45);
}

.form-bottom-links {
    margin-top: 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.login-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;
}

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

/* Responsividad */
@media (max-width: 860px) {
    .register-card {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

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

    .info-highlights {
        display: none;
    }

    .register-form-side {
        padding: 35px 25px;
    }
}

@media (max-width: 520px) {
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
