/* ============================================
 * TattooAE · Fênix — Tela de Autenticação
 * Arquivo: /assets/css/auth.css
 * Depende de: tokens.css, buttons.css
 * ==========================================*/

:root {
    /* Fallbacks caso tokens.css não carregue */
    --tae-color-bg-body: #050505;
    --tae-color-bg-surface: #101010;
    --tae-color-bg-elevated: #141414;
    --tae-color-text-primary: #f5f5f5;
    --tae-color-text-muted: #9b9b9b;
    --tae-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.75);
    --tae-radius-xl: 24px;
    --tae-radius-md: 10px;
    --tae-font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

/* Reset básico */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Corpo da tela de login */

body.tae-auth-body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #222 0, #050505 50%, #000 100%);
    color: var(--tae-color-text-primary);
    font-family: var(--tae-font-family-base);
}

/* Wrapper centralizando o card */

.tae-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* Card principal */

.tae-auth-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(to bottom, #111 0, #0a0a0a 40%, #050505 100%);
    border-radius: var(--tae-radius-xl);
    box-shadow: var(--tae-shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header (logo + topo) */

.tae-auth-header {
    position: relative;
    padding: 32px 24px 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
}

.tae-auth-logo-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tae-auth-logo-title {
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
}

.tae-auth-logo-subtitle {
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    text-transform: lowercase;
    color: var(--tae-color-text-muted);
}

/* Conteúdo central */

.tae-auth-content {
    padding: 16px 24px 8px;
    background: radial-gradient(circle at top, #181818 0, #101010 45%, #050505 100%);
}

.tae-auth-welcome {
    margin: 4px 0 6px;
    font-size: 1.4rem;
    font-weight: 600;
}

.tae-auth-subtext {
    margin: 0 0 18px;
    font-size: 0.86rem;
    color: var(--tae-color-text-muted);
}

/* Formulário */

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

.tae-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--tae-color-text-muted);
}

.tae-auth-field span {
    padding-left: 2px;
}

.tae-auth-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--tae-radius-md);
    border: 1px solid #2a2a2a;
    background: #050505;
    color: var(--tae-color-text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tae-auth-field input::placeholder {
    color: #666;
}

.tae-auth-field input:focus {
    border-color: rgba(169, 206, 49, 0.8);
    box-shadow: 0 0 0 1px rgba(169, 206, 49, 0.25);
    background: #070707;
}

/* Integração com os botões do UI Kit */

.tae-auth-form .tae-btn {
    width: 100%;
    margin-top: 4px;
}

.tae-auth-form .tae-btn-secondary {
    margin-top: 2px;
}

/* Botão ghost alinhado à esquerda */

.tae-auth-form .tae-btn-ghost {
    margin-top: 6px;
    align-self: flex-start;
}

/* Rodapé */

.tae-auth-footer {
    padding: 10px 24px 18px;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    color: var(--tae-color-text-muted);
    text-align: center;
}

/* Responsivo */

@media (min-width: 768px) {
    .tae-auth-wrapper {
        padding: 32px;
    }

    .tae-auth-card {
        max-width: 460px;
    }
}

.tae-auth-error,
.tae-auth-info,
.tae-auth-note {
    padding: 10px 12px;
    border-radius: var(--tae-radius-md);
    font-size: 0.84rem;
    margin-bottom: 14px;
    border: 1px solid #262626;
    background: rgba(255,255,255,0.03);
}

.tae-auth-error {
    border-color: rgba(150, 10, 10, 0.45);
}

.tae-auth-info {
    border-color: rgba(106, 128, 35, 0.45);
}

.tae-auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--tae-color-text-muted);
}

.tae-auth-check input {
    width: 16px;
    height: 16px;
    accent-color: #a9c943;
}

.tae-auth-links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.tae-auth-links-row.is-start {
    justify-content: flex-start;
}

.tae-auth-link {
    color: #c8ff6b;
    text-decoration: none;
    font-size: 0.85rem;
}

.tae-auth-link:hover {
    text-decoration: underline;
}

.tae-auth-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--tae-radius-md);
    border: 1px solid #2a2a2a;
    background: #050505;
    color: var(--tae-color-text-primary);
    font-size: 0.9rem;
    outline: none;
}

.tae-auth-select:focus {
    border-color: rgba(169, 206, 49, 0.8);
    box-shadow: 0 0 0 1px rgba(169, 206, 49, 0.25);
}

.tae-auth-note {
    color: var(--tae-color-text-muted);
}


.tae-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tae-password-wrap input {
    padding-right: 46px;
}

.tae-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.84;
}

.tae-password-toggle:hover {
    opacity: 1;
}

.tae-password-toggle img {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}
