/* ============================================================
   AUTH.CSS v2 — Login / signup / recuperar
   Alineado con el mockup de la app móvil
   ============================================================ */

.auth-page {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(15, 95, 86, 0.08), transparent 60%),
        radial-gradient(700px 400px at 10% 100%, rgba(217, 147, 67, 0.06), transparent 60%),
        var(--cream);
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-inner {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Eyebrow italic centrado con rayitas coral */
.auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--coral);
    margin-bottom: 28px;
}
.auth-eyebrow::before,
.auth-eyebrow::after {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--coral);
}

/* Logo-imagen PNG centrado (login, signup, password_reset, mfa, social...) */
.auth-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.auth-card-logo img {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Kicker y título */
.auth-kicker {
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.auth-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 30px;
    color: var(--ink);
    letter-spacing: -0.6px;
    line-height: 1.1;
    text-align: center;
    margin: 0 0 12px;
}
.auth-title em {
    font-style: italic;
    color: var(--coral);
}
.auth-lead {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    line-height: 1.55;
    max-width: 340px;
    margin: 0 0 24px;
}

/* Card */
.auth-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line-warm);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 34px rgba(14, 37, 36, 0.06);
}

.auth-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(191, 46, 46, 0.08);
    border: 1px solid rgba(191, 46, 46, 0.2);
    border-radius: 10px;
    color: var(--sos-deep);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.auth-error svg { flex-shrink: 0; margin-top: 2px; color: var(--sos); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }

/* Campo con icono izquierda */
.auth-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line-warm);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.auth-field:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15, 95, 86, 0.1);
}
.auth-field svg { color: var(--muted-2); flex-shrink: 0; }
.auth-field input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 0;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
}
.auth-field input::placeholder { color: var(--muted-2); }
.auth-field-label {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--coral);
    margin: 10px 0 -6px;
    padding-inline-start: 2px;
    text-transform: uppercase;
}
.auth-field-toggle {
    padding: 6px;
    color: var(--muted-2);
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    transition: color .2s, background .2s;
}
.auth-field-toggle:hover { color: var(--teal); background: var(--teal-soft); }
.auth-field--pass { background: var(--cream); }

.auth-help {
    font-size: 12.5px;
    color: var(--muted-2);
    line-height: 1.5;
    margin: -4px 0 2px;
    padding: 0 2px;
}

/* Recuérdame + olvidaste */
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--ink-body);
    margin-top: 2px;
}
.auth-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.auth-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--coral);
}
.auth-row a {
    color: var(--coral);
    text-decoration: underline;
    font-weight: 500;
    font-size: 13px;
}

/* Botón primario tipo pill */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 22px;
    background: var(--coral);
    color: #fff;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(197, 76, 46, 0.25);
}
.auth-btn:hover {
    background: #A83E21;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(197, 76, 46, 0.35);
}
.auth-btn svg { transition: transform .2s; }
.auth-btn:hover svg { transform: translateX(3px); }

/* Separador "O CONTINÚA CON" */
.auth-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 2px;
}
.auth-sep::before,
.auth-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-warm);
}
.auth-sep span {
    font-size: 10px;
    letter-spacing: 2.5px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
}

/* Botones OAuth: Google + Apple lado a lado */
.auth-oauth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.auth-oauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 10px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, border-color .2s;
    position: relative;
    white-space: nowrap;
    min-width: 0;
}
.auth-oauth-btn > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.auth-oauth-btn:hover:not([aria-disabled='true']) {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(14, 37, 36, 0.08);
    border-color: var(--teal-border);
}

/* Google: blanco con sombra sutil y logo a color */
.auth-oauth-btn--google {
    background: #fff;
    color: #1F2937;
    border-color: #DADCE0;
}

/* Apple: negro con logo blanco */
.auth-oauth-btn--apple {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Logo Google SVG (4 colores oficiales) */
.auth-oauth-btn .google-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Variante "Próximamente": botón apagado pero con logo visible */
.auth-oauth-btn--soon {
    cursor: not-allowed;
    opacity: 0.78;
}
.auth-oauth-btn--soon:hover {
    transform: none;
    box-shadow: none;
}
.auth-oauth-btn--soon > span:not(.auth-oauth-soon) {
    display: none;
}
.auth-oauth-soon {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 13.5px;
    letter-spacing: -0.1px;
}
.auth-oauth-btn--google.auth-oauth-btn--soon { color: #5F6368; }
.auth-oauth-btn--apple.auth-oauth-btn--soon { color: rgba(255, 255, 255, 0.85); }

/* Footer: crear cuenta + sellos */
.auth-footer {
    margin-top: 22px;
    font-size: 13px;
    color: var(--ink-body);
    text-align: center;
}
.auth-footer a {
    color: var(--coral);
    font-weight: 600;
    text-decoration: underline;
}

.auth-seals {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: 1.2px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
}
.auth-seal { display: inline-flex; align-items: center; gap: 5px; }
.auth-seal svg { opacity: 0.7; }
.auth-seal-sep { opacity: 0.35; color: var(--muted-2); }

/* Campo de errores de allauth */
.auth-form .errorlist {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
    font-size: 12.5px;
    color: var(--sos);
    display: flex;
    align-items: center;
    gap: 6px;
}
.auth-form .errorlist::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sos);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 520px) {
    .auth-page { padding: 40px 16px; }
    .auth-card { padding: 20px; border-radius: 18px; }
    .auth-title { font-size: 26px; }
    .auth-oauth { grid-template-columns: 1fr; }
}
