@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

/* =============================================================
   AUTH PAGE — Paleta índigo
============================================================= */
:root {
    --color-primary:  #4f46e5;
    --color-bg:       #f5f3ff;
    --color-white:    #ffffff;
    --color-border:   #e5e7eb;
    --color-text:     #1f2937;
    --color-text-muted: #6b7280;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Urbanist', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* --- Tarjeta de autenticación --- */
.auth-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

/* --- Encabezado (franja de color) --- */
.auth-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
    padding: 32px 32px 28px;
    text-align: center;
    color: #fff;
}

.auth-logo {
    max-height: 44px;
    width: auto;
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .65;
    margin: 0 0 6px;
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* --- Cuerpo del formulario --- */
.auth-body {
    padding: 28px 32px 32px;
}

/* --- Campos --- */
.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text);
    background: #fafafa;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.auth-field input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
    background: #fff;
}

/* --- Errores --- */
.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 18px;
}

.auth-error:empty { display: none; }

.field-error {
    font-size: 12px;
    color: #dc2626;
    display: block;
    margin-top: 4px;
}

/* --- Botón submit --- */
.btn-auth {
    width: 100%;
    padding: 12px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 4px;
}

.btn-auth:hover  { background-color: #4338ca; }
.btn-auth:active { transform: scale(0.99); }
