/* ========================================================= */
/* AUTH / ACCESO AL SISTEMA */
/* Login, primer usuario y pantallas de acceso */
/* ========================================================= */


/* ========================================================= */
/* BODY LOGIN */
/* ========================================================= */

.auth-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1f4f91, #285999);
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #172033;
}

* {
    box-sizing: border-box;
}


/* ========================================================= */
/* CONTENEDOR LOGIN */
/* ========================================================= */

.auth-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-header {
    background: linear-gradient(135deg, #eef2ff, #ffffff);
    padding: 26px 24px 20px 24px;
    text-align: center;
    border-bottom: 1px solid #dce3ee;
}

.auth-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #1f4f91;
    margin-bottom: 8px;
}

.auth-logo span {
    color: #ff7a1a;
}

.auth-header h1 {
    margin: 0;
    color: #172033;
    font-size: 23px;
    font-weight: 900;
}

.auth-header p {
    margin: 8px 0 0 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.auth-body-card {
    padding: 24px;
}


/* ========================================================= */
/* FORMULARIO LOGIN */
/* ========================================================= */

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-campo {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-campo label {
    font-size: 13px;
    font-weight: 900;
    color: #2436a6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.auth-campo input,
.auth-campo select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    outline: none;
}

.auth-campo input:focus,
.auth-campo select:focus {
    border-color: #5658dd;
    box-shadow: 0 0 0 3px rgba(86, 88, 221, 0.16);
}

.auth-campo small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}


/* ========================================================= */
/* BOTONES AUTH */
/* ========================================================= */

.auth-btn {
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    margin-top: 5px;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #4338ca, #1d4ed8);
}

.auth-link {
    color: #3730a3;
    font-weight: 900;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}


/* ========================================================= */
/* MENSAJES */
/* ========================================================= */

.auth-mensaje {
    padding: 12px 14px;
    border-radius: 9px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 800;
}

.auth-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-info {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}


/* ========================================================= */
/* PIE LOGIN */
/* ========================================================= */

.auth-footer {
    padding: 16px 24px 22px 24px;
    text-align: center;
    border-top: 1px solid #eef2f8;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.auth-footer strong {
    color: #1f4f91;
}


/* ========================================================= */
/* PRIMER USUARIO */
/* ========================================================= */

.auth-primer-usuario {
    max-width: 560px;
}

.auth-primer-usuario .auth-header {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.auth-alerta-inicial {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 5px solid #f97316;
    border-radius: 10px;
    padding: 13px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 16px;
}


/* ========================================================= */
/* PÁGINA NO ENCONTRADA / ACCESO SIMPLE */
/* ========================================================= */

.auth-simple-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    padding: 28px;
    text-align: center;
    max-width: 520px;
    width: 100%;
}

.auth-simple-card h1 {
    margin: 0 0 10px 0;
    color: #172033;
    font-size: 28px;
    font-weight: 900;
}

.auth-simple-card p {
    margin: 0 0 18px 0;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}

.auth-simple-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    background: #5658dd;
    color: #ffffff;
    padding: 11px 16px;
    border-radius: 9px;
    font-weight: 900;
    text-decoration: none;
}

.auth-simple-card a:hover {
    background: #4547c7;
    text-decoration: none;
}


/* ========================================================= */
/* RESPONSIVE */
/* ========================================================= */

@media (max-width: 560px) {
    .auth-wrapper {
        padding: 14px;
    }

    .auth-header {
        padding: 22px 18px 18px 18px;
    }

    .auth-body-card {
        padding: 18px;
    }

    .auth-logo {
        font-size: 24px;
    }

    .auth-header h1 {
        font-size: 20px;
    }
}