:root {
    --brand: #1f6feb;
    --brand2: #0ea5e9;
    --bg-modern: #f3f4f6; /* Gris un pelín más oscuro para resaltar la tarjeta blanca */
    --input-border: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-modern);
}

/* ========================================== */
/* ESTILOS DEL BRANDING FUERA DE LA TARJETA */
/* ========================================== */
.branding-wrapper {
    /* Un pequeño margen extra abajo para separarlo de la tarjeta */
    margin-bottom: 2.5rem !important;
}

#contenedorLogoConfig img {
    /* Aquí defines qué tan grande quieres la imagen del logo */
    max-height: 70px; 
    max-width: 200px;
    object-fit: contain; /* Asegura que no se deforme */
}

/* Estilo para cuando no hay imagen y se muestra el icono por defecto */
.logo-placeholder {
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#nombrePlataformaConfig {
    letter-spacing: -0.5px; /* Un toque moderno a la tipografía */
}

/* ========================================== */
/* ESTILOS DE LA TARJETA (SIN CAMBIOS GRANDES) */
/* ========================================== */
.login-card {
    border-radius: 28px; /* Un poco más redondeada la tarjeta */
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.035) !important;
    max-width: 480px; 
}

.slim-input {
    border: 1.5px solid var(--input-border);
    height: 3rem; 
    font-size: 0.95rem;
    background-color: #ffffff;
    color: #1e293b;
    padding-top: 0;
    padding-bottom: 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.slim-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem rgba(31, 111, 235, 0.15);
}

.input-wrapper > i {
    font-size: 1.1rem;
    pointer-events: none; 
}

.toggle-password {
    z-index: 10;
    height: 3rem;
    display: flex;
    align-items: center;
}

/* SOBREESCRIBIR BOOTSTRAP: BOTÓN CON DEGRADADO */
.btn-primary {
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
    border: 0 !important;
    box-shadow: 0 10px 20px rgba(31, 111, 235, 0.18) !important;
    color: #ffffff !important;
}

.btn-slim {
    height: 3.1rem; 
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    transition: box-shadow 0.2s ease;
}

.btn-slim:hover {
    box-shadow: 0 12px 24px rgba(31, 111, 235, 0.28) !important;
}

.border-light {
    border-color: var(--input-border) !important;
}

/* ENLACES LIMPIOS */
.hover-link {
    font-weight: 600;
    color: var(--brand) !important; 
    transition: color 0.2s;
}
.hover-link:hover {
    color: var(--brand2) !important; 
}

/*Register*/
.code-box {
    width: 3rem;
    height: 3.5rem;
    border-radius: 12px; /* Un poco redondeados */
    border: 1.5px solid var(--input-border);
    color: #1e293b;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.code-box:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem rgba(31, 111, 235, 0.15);
    background-color: #f8fafc; /* Un fondo muy sutil al enfocar */
}