/* ══════════════════════════════════════════════════════════════
   Cuenta — entrar, crear cuenta y confirmar el correo.
   Sin hex / rgba aquí: todos los colores vienen de las variables
   --public-* declaradas en assets/brands/<brand>/css/skin.css.
   ══════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body.auth {
    font-family: var(--font-family);
    background: var(--public-bg);
    color: var(--public-text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--public-box-bg);
    border: 1px solid var(--public-box-border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    color: var(--accent);
    text-decoration: none;
}

.auth-brand svg {
    width: 30px;
    height: 33px;
}

.auth-brand .wordmark {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-brand .wordmark em {
    font-style: normal;
    color: var(--cube-color);
}

.auth-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--public-heading);
    line-height: 1.3;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--public-label);
    line-height: 1.5;
    margin-top: 6px;
}

.auth-error {
    background: var(--public-error-bg);
    border: 1px solid var(--public-error-border);
    color: var(--public-error-text);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.875rem;
    line-height: 1.45;
}

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

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--public-label);
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--public-text);
    background: var(--chat-input-bg);
    border: 1px solid var(--public-box-border);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    width: 100%;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--chat-input-focus-border);
    box-shadow: 0 0 0 3px var(--chat-input-focus-ring);
}

.auth-hint {
    font-size: 0.78rem;
    color: var(--public-label);
}

.auth-accept {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.82rem;
    color: var(--public-label);
    line-height: 1.45;
}

.auth-accept input {
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-accept a { color: var(--accent); }

.auth-submit {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--public-btn-text);
    background: var(--public-btn-bg);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    cursor: pointer;
}

.auth-submit:hover { background: var(--public-btn-hover); }

.auth-footer {
    font-size: 0.85rem;
    color: var(--public-label);
    text-align: center;
}

.auth-footer a {
    color: var(--accent);
    font-weight: 500;
}

.auth-body {
    font-size: 0.9rem;
    color: var(--public-label);
    line-height: 1.55;
}

/* The other ways in. Same width and same weight as the button above it: an
   alternative, not a lesser option. */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--public-label);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--public-box-border);
}

.auth-alternative {
    display: flex;
    width: 100%;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--public-text);
    background: var(--public-box-bg);
    border: 1px solid var(--public-btn-alt-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    cursor: pointer;
}

.auth-alternative:hover { background: var(--chat-input-bg); }

.auth-alternative svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--public-label);
}

/* Six digits, read back off a phone screen. Spaced and monospaced so a 1 and a
   7 are not the same glyph at a glance. */
.auth-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.3rem;
    letter-spacing: 0.4em;
    text-align: center;
}

/* Back out of the flow, and the small print under it. */
.auth-back {
    align-self: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
}

.auth-note {
    font-size: 0.78rem;
    color: var(--public-label);
    line-height: 1.5;
    text-align: center;
}
