

/* ==========================================
   AUTENTICACIÓN - TIADMINISTRACION
   Corporación Municipal de Isla de Maipo
   Compatible con Bootstrap 5.3.3
   ========================================== */

/* VARIABLES INSTITUCIONALES */

:root {
    --auth-primary: #164a7b;
    --auth-primary-dark: #10395f;
    --auth-accent: #f28c28;
    --auth-background: #f3f6f9;
    --auth-text: #243447;
    --auth-muted: #677788;
    --auth-border: #dce4eb;
    --auth-danger: #b42318;
}

/* PÁGINA PRINCIPAL */

.auth-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient( 135deg, rgba(22, 74, 123, 0.08), rgba(242, 140, 40, 0.08) ), var(--auth-background);
    color: var(--auth-text);
    font-family: Arial, Helvetica, sans-serif;
}

.auth-page,
.auth-page * {
    box-sizing: border-box;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

/* TARJETA PRINCIPAL */

.auth-card {
    width: 100%;
    max-width: 540px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(16, 57, 95, 0.14);
}

.auth-accent {
    height: 6px;
    background: linear-gradient( 90deg, var(--auth-primary) 0 72%, var(--auth-accent) 72% 100% );
}

.auth-content {
    padding: 36px;
}

/* ENCABEZADO */

.auth-header {
    margin-bottom: 28px;
    text-align: center;
}

.auth-logo-container {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--auth-border);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(16, 57, 95, 0.10);
}

.auth-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.auth-title {
    margin: 0 0 10px;
    color: var(--auth-primary-dark);
    font-size: 28px;
    font-weight: 700;
}

.auth-description {
    max-width: 420px;
    margin: 0 auto;
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* CAMPOS DE FORMULARIO */

.auth-field {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    margin-bottom: 7px;
    color: var(--auth-text);
    font-size: 14px;
    font-weight: 700;
}

.auth-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    color: var(--auth-text);
    background: #ffffff;
    border: 1px solid #c9d4df;
    border-radius: 9px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .auth-input:focus {
        border-color: var(--auth-primary);
        box-shadow: 0 0 0 3px rgba(22, 74, 123, 0.14);
    }

.auth-help {
    display: block;
    margin-top: 7px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.45;
}

/* AVISOS INFORMATIVOS */

.auth-notice {
    margin-bottom: 22px;
    padding: 13px 15px;
    color: #69410d;
    background: #fff7e8;
    border: 1px solid #f6d9a6;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
}

/* BOTÓN PRINCIPAL */

.auth-button {
    display: block;
    width: 100%;
    margin-top: 26px;
    padding: 13px 22px;
    color: #ffffff;
    background: var(--auth-primary);
    border: 1px solid var(--auth-primary);
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .auth-button:hover,
    .auth-button:focus {
        color: #ffffff;
        background: var(--auth-primary-dark);
        transform: translateY(-1px);
    }

    .auth-button:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }

/* ENLACES GENERALES */

.auth-login {
    margin-top: 22px;
    color: var(--auth-muted);
    font-size: 14px;
    text-align: center;
}

    .auth-login a {
        color: var(--auth-primary);
        font-weight: 700;
        text-decoration: none;
    }

        .auth-login a:hover,
        .auth-login a:focus {
            color: var(--auth-primary-dark);
            text-decoration: underline;
        }

/* VALIDACIONES MVC */

.validation-summary-errors {
    margin-bottom: 22px;
    padding: 13px 15px;
    color: var(--auth-danger);
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 9px;
    font-size: 14px;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 20px;
    }

.field-validation-error {
    display: block;
    margin-top: 6px;
    color: var(--auth-danger);
    font-size: 13px;
    font-weight: 600;
}

.input-validation-error {
    border-color: var(--auth-danger);
    background: #fffafa;
}

    .input-validation-error:focus {
        border-color: var(--auth-danger);
        box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
    }

/* ==========================================
   LOGIN - OPCIONES ESPECÍFICAS
   ========================================== */

/* RECORDAR SESIÓN */

.auth-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
    margin-bottom: 8px;
}

    .auth-remember input[type="checkbox"] {
        width: 17px;
        height: 17px;
        margin: 0;
        cursor: pointer;
        accent-color: var(--auth-primary);
    }

    .auth-remember label {
        margin: 0;
        color: var(--auth-text);
        font-size: 14px;
        cursor: pointer;
    }

/* RECUPERACIÓN Y CONFIRMACIÓN */

.auth-links {
    margin-top: 24px;
    text-align: center;
}

.auth-links-item {
    margin-bottom: 13px;
}

.auth-links a {
    color: var(--auth-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

    .auth-links a:hover,
    .auth-links a:focus {
        color: var(--auth-primary-dark);
        text-decoration: underline;
    }

/* SEPARADOR */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 20px;
    color: var(--auth-muted);
    font-size: 13px;
    text-align: center;
}

    .auth-divider::before,
    .auth-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--auth-border);
    }

/* REGISTRO */

.auth-register {
    color: var(--auth-muted);
    font-size: 14px;
    text-align: center;
}

    .auth-register a {
        color: var(--auth-primary);
        font-weight: 700;
        text-decoration: none;
    }

        .auth-register a:hover,
        .auth-register a:focus {
            color: var(--auth-primary-dark);
            text-decoration: underline;
        }

/* PIE INSTITUCIONAL */

.auth-footer {
    margin-top: 26px;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* ==========================================
   DISEÑO RESPONSIVE
   ========================================== */

@media (max-width: 576px) {

    .auth-page {
        padding: 20px 12px;
    }

    .auth-content {
        padding: 28px 22px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-description {
        font-size: 14px;
    }

    .auth-card {
        border-radius: 14px;
    }
}
