/* Tela de autenticação (login / recuperação) — módulo "auth".
   Direção: "command center" técnico e refinado, com a marca TheCamp.
   Hero escuro com atmosfera (glows + grade + vinheta) + painel claro com o formulário.
   Tudo em CSS externo (CSP-safe). Movimento contido e com prefers-reduced-motion. */

.tc-auth {
    min-height: 100vh;
    background: var(--bs-body-bg, #fff);
}

/* Controles do canto superior (tema / idioma) — acima do grid */
.tc-auth-controls {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    z-index: 5;
    display: flex;
    gap: 0.4rem;
}
.tc-auth-controls .tc-iconbtn {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}
.tc-auth-controls .tc-iconbtn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.tc-auth-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 100vh;
    position: relative;
}

/* ============ HERO (lado escuro) ============ */
.tc-auth-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.25rem 3.5rem;
    /* atmosfera em camadas: glow laranja, leve glow amarelo e base escura */
    background:
        radial-gradient(58% 48% at 86% 12%, rgba(232, 69, 37, 0.45), transparent 60%),
        radial-gradient(48% 42% at 6% 94%, rgba(255, 204, 1, 0.10), transparent 60%),
        radial-gradient(120% 120% at 0% 0%, #2a2a33 0%, var(--tc-ink, #16161a) 58%, #0c0c0f 100%);
    box-shadow: inset 0 0 200px 40px rgba(0, 0, 0, 0.5); /* vinheta */
}
/* grade técnica sutil, com máscara para sumir nas bordas */
.tc-auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(circle at 70% 60%, #000, transparent 78%);
    mask-image: radial-gradient(circle at 70% 60%, #000, transparent 78%);
    pointer-events: none;
}
.tc-auth-hero > * { position: relative; z-index: 1; }

/* topo: kicker + logo */
.tc-auth-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 1.5rem;
}
.tc-auth-hero__kicker .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tc-brand-2, #ffcc01);
    box-shadow: 0 0 0 4px rgba(255, 204, 1, 0.16);
}
.tc-auth-hero__logo { width: 230px; max-width: 56%; display: block; }

/* meio: headline + texto + chips */
.tc-auth-hero__title {
    font-family: var(--tc-font-display);
    font-size: clamp(1.9rem, 2.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 0.7rem;
}
.tc-auth-hero__title .accent { color: var(--tc-brand-2, #ffcc01); }
.tc-auth-hero__text {
    color: rgba(255, 255, 255, 0.72);
    max-width: 40ch;
    margin: 0;
    line-height: 1.6;
}
.tc-auth-hero__feats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 1.5rem 0 0;
}
.tc-auth-hero__feats li {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2rem;
    padding: 0.32rem 0.85rem;
}

.tc-auth-hero__foot {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.8rem;
    margin: 0;
}

/* ============ PAINEL (lado claro) ============ */
.tc-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}
.tc-auth-panel__inner { width: 100%; max-width: 400px; }
.tc-auth-panel__logo {
    display: none; /* só no mobile, quando o hero some */
    width: 180px;
    margin: 0 auto 1.75rem;
}
.tc-auth-panel .card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(16, 16, 17, 0.12);
}

/* Inputs e botões com a identidade (foco/hover) */
.tc-auth .form-control,
.tc-auth .input-group .btn {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}
.tc-auth .form-control:focus {
    border-color: var(--tc-brand, #e84525);
    box-shadow: 0 0 0 0.25rem rgba(232, 69, 37, 0.18);
}
.tc-auth .btn-primary {
    font-weight: 600;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.tc-auth .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(232, 69, 37, 0.28);
}
.tc-auth a { font-weight: 500; }

/* ============ Movimento de entrada (contido) ============ */
@keyframes tcFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
.tc-auth-hero__kicker,
.tc-auth-hero__logo,
.tc-auth-hero__title,
.tc-auth-hero__text,
.tc-auth-hero__feats,
.tc-auth-hero__foot,
.tc-auth-panel__inner {
    opacity: 0;
    animation: tcFadeUp 0.6s ease forwards;
}
.tc-auth-hero__kicker { animation-delay: 0.05s; }
.tc-auth-hero__logo   { animation-delay: 0.12s; }
.tc-auth-hero__title  { animation-delay: 0.20s; }
.tc-auth-hero__text   { animation-delay: 0.28s; }
.tc-auth-hero__feats  { animation-delay: 0.36s; }
.tc-auth-hero__foot   { animation-delay: 0.44s; }
.tc-auth-panel__inner { animation-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
    .tc-auth-hero__kicker,
    .tc-auth-hero__logo,
    .tc-auth-hero__title,
    .tc-auth-hero__text,
    .tc-auth-hero__feats,
    .tc-auth-hero__foot,
    .tc-auth-panel__inner {
        opacity: 1;
        animation: none;
    }
}

/* ============ Responsivo (mobile: vira o hero — escuro + logo + card) ============ */
@media (max-width: 860px) {
    .tc-auth { background: transparent; }
    .tc-auth-grid {
        grid-template-columns: 1fr;
        background:
            radial-gradient(130% 70% at 50% 0%, #2a2a33 0%, var(--tc-ink, #16161a) 60%, #0e0e11 100%);
    }
    .tc-auth-grid::before {
        content: "";
        position: absolute;
        top: -10%;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 35%;
        background: radial-gradient(circle, rgba(232, 69, 37, 0.4), transparent 60%);
        pointer-events: none;
    }
    .tc-auth-hero { display: none; }
    .tc-auth-panel { position: relative; z-index: 1; min-height: 100vh; }
    .tc-auth-panel__logo { display: block; }
}
