﻿:root {
    --auth-primary: #254b73;
    --auth-primary-hover: #1b3857;
    --auth-background: #f0f4f8;
    --auth-text: #1e293b;
    --auth-muted: #64748b;
    --auth-border: #dce3eb;
}

body {
    margin: 0;
    background: var(--auth-background);
    color: var(--auth-text);
    font-family: "Segoe UI", system-ui, sans-serif;
}

.auth-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: var(--auth-primary);
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 8px 20px rgba(37, 75, 115, .18);
}

.auth-brand h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--auth-primary);
    margin-bottom: 5px;
}

.auth-brand p {
    color: var(--auth-muted);
    font-size: 14px;
    margin: 0;
}

.auth-card {
    background: #fff;
    padding: 32px;
    border: 1px solid #e7ecf2;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(30, 41, 59, .07);
}

.auth-title {
    text-align: center;
    font-size: 23px;
    font-weight: 650;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--auth-muted);
    margin-bottom: 26px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.form-control {
    min-height: 46px;
    font-size: 15px;
    border-color: var(--auth-border);
}

    .form-control:focus {
        border-color: var(--auth-primary);
        box-shadow: 0 0 0 .2rem rgba(37, 75, 115, .12);
    }

.input-group-text {
    background: #f8fafc;
    border-color: var(--auth-border);
    color: var(--auth-muted);
}

.btn-password-toggle {
    background: #fff;
    border: 1px solid var(--auth-border);
    color: var(--auth-muted);
}

    .btn-password-toggle:hover {
        background: #f8fafc;
        color: var(--auth-primary);
    }

.btn-auth {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
    color: #fff;
    min-height: 46px;
    font-weight: 600;
    border-radius: 8px;
}

    .btn-auth:hover,
    .btn-auth:focus,
    .btn-auth:active {
        background: var(--auth-primary-hover);
        border-color: var(--auth-primary-hover);
        color: #fff;
    }

.form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--auth-muted);
    margin-top: 24px;
}

.field-validation-error {
    display: block;
    font-size: 13px;
    color: #dc3545;
    margin-top: 5px;
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    padding-left: 18px;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }

    .auth-brand h1 {
        font-size: 26px;
    }
}
/* =====================================================
   ICONOS DE PÁGINAS DE AUTENTICACIÓN
   ===================================================== */

.auth-page-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #edf3f9;
    color: var(--auth-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.auth-page-icon-danger {
    background: #fce8e8;
    color: #dc3545;
}

.auth-error-code {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #cbd5e1;
    margin: 20px 0;
}

.auth-card .btn-outline-secondary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
}

.auth-card .form-text {
    font-size: 12px;
    color: var(--auth-muted);
}