@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --card-bg: #141414;
    --border-card: #262626;
    --gold: #f39c12;
    --gold-hover: #d68910;
    --text-main: #ffffff;
    --text-muted: #e0e0e0; /* Blanco suave con alto contraste */

    /* AJUSTA AQUÍ EL TAMAÑO DEL LOGO CUANDO QUIERAS */
    --logo-max-width: 360px;
}

/* Base global con especificidad html body */
html body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* Tarjeta principal */
html body .login-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;

    /* Sobrescribe variables internas de Bootstrap dentro de la tarjeta */
    --bs-secondary-color: #e0e0e0;
    --bs-secondary-rgb: 224, 224, 224;
    --bs-body-color: #ffffff;
    --bs-text-opacity: 1;
}

/* Control del tamaño del Logo */
html body .login-card .login-logo {
    max-width: var(--logo-max-width);
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.75rem auto;
    object-fit: contain;
}

/* Subtítulos y textos opacos (Inmunizados contra el gris de Bootstrap) */
html body .login-card .text-muted,
html body .login-card p.text-muted,
html body .login-card span.text-muted,
html body .login-card small.text-muted,
html body .login-card div.text-muted {
    color: var(--text-muted);
    opacity: 1;
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* Formulario e Inputs */
html body .login-card .form-label {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    display: block;
}

html body .login-card .form-control {
    background-color: #1a1a1a;
    border: 1px solid #444444;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

html body .login-card .form-control::placeholder {
    color: #aaaaaa;
    opacity: 1;
}

html body .login-card .form-control:focus {
    background-color: #1a1a1a;
    border-color: var(--gold);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
    outline: none;
}

/* Botón Dorado */
html body .login-card .btn-gold {
    background-color: var(--gold);
    border: none;
    border-radius: 8px;
    color: #000000;
    font-weight: 600;
    padding: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    display: inline-block;
    text-align: center;
}

html body .login-card .btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

html body .login-card .btn-gold:active,
html body .login-card .btn-gold:focus {
    transform: translateY(0);
    box-shadow: none;
}

/* Enlace inferior "Ir al Control de Acceso" */
html body .login-card a,
html body .login-card a.hover-gold,
html body .login-card .hover-gold,
html body .login-card a.text-muted {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid #555555;
    transition: color 0.3s ease, border-color 0.3s ease;
}

html body .login-card a:hover,
html body .login-card a.hover-gold:hover,
html body .login-card .hover-gold:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Alertas de sesión */
html body .login-card .alert {
    border-radius: 8px;
    font-size: 0.9rem;
    border: none;
}