/* Nemesis Center — Login / Cadastro
   Vermelho · dourado · preto · compacto, sem scroll */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Rajdhani:wght@500;600;700&display=swap");

:root {
    --na-red: #c4182d;
    --na-red-bright: #e8253a;
    --na-gold: #d4af37;
    --na-gold-bright: #f0d060;
    --na-gold-dim: rgba(212, 175, 55, 0.2);
}

/* ——— Página travada: nada de scroll ——— */
html:has(body.nc-auth-body) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

body.nc-auth-body {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden !important;
    overscroll-behavior: none;
    background: #050505 !important;
    font-family: "Rajdhani", system-ui, sans-serif;
}

body.nc-auth-body .nc-auth-shell {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px 0;
}

body.nc-auth-body .nc-auth-footer,
body.nc-auth-body .nc-footer.nc-auth-footer {
    flex-shrink: 0;
    padding: 6px 12px max(8px, env(safe-area-inset-bottom, 0px));
    font-size: 10px;
    text-align: center;
}

/* ——— Wallpaper ——— */
body.nc-auth-body .nc-cyber-bg,
body.nc-auth-body .nc-cyber-bg--auth {
    z-index: -3;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.nc-auth-body .nc-cyber-bg::after,
body.nc-auth-body .nc-cyber-bg--auth::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.6) 65%, rgba(0, 0, 0, 0.92) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(40, 0, 8, 0.3) 45%, rgba(0, 0, 0, 0.85) 100%);
}

body.nc-auth-body .nc-cyber-grid {
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(196, 24, 45, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
}

body.nc-auth-body .nc-cyber-glow-a { background: rgba(196, 24, 45, 0.25); }
body.nc-auth-body .nc-cyber-glow-b { background: rgba(212, 175, 55, 0.16); }

/* ——— Card ——— */
body.nc-auth-body .nc-cyber-terminal {
    width: 100%;
    max-width: 380px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(6, 3, 3, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.85),
        0 0 48px rgba(196, 24, 45, 0.16),
        0 24px 60px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(240, 208, 96, 0.1);
    animation: na-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes na-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

body.nc-auth-body .nc-cyber-terminal::before,
body.nc-auth-body .nc-cyber-terminal::after {
    display: none;
}

body.nc-auth-body .nc-cyber-titlebar {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    background: linear-gradient(90deg, rgba(196, 24, 45, 0.25), rgba(212, 175, 55, 0.07), transparent);
    color: var(--na-gold-bright);
}

body.nc-auth-body .nc-cyber-titlebar-dots span { width: 7px; height: 7px; }
body.nc-auth-body .nc-cyber-titlebar-dots span:first-child {
    background: rgba(196, 24, 45, 0.9);
    box-shadow: 0 0 8px rgba(232, 37, 58, 0.55);
}
body.nc-auth-body .nc-cyber-titlebar-path { color: rgba(240, 208, 96, 0.9); }
body.nc-auth-body .nc-cyber-titlebar-status { color: var(--na-red-bright); }

body.nc-auth-body .nc-cyber-body {
    padding: 16px 20px 14px;
}

/* ——— Marca (logo ao lado do título) ——— */
body.nc-auth-body .nc-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

body.nc-auth-body .nc-auth-logo-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex !important;
    margin: 0 !important;
}

body.nc-auth-body .nc-auth-logo-wrap::before,
body.nc-auth-body .nc-auth-logo-wrap::after { display: none; }

body.nc-auth-body .nc-auth-logo {
    position: relative;
    z-index: 1;
    width: 130px;
    height: 130px;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 50%;
    border: none;
    box-shadow: none;
    filter: none;
}

body.nc-auth-body .nc-auth-heading {
    min-width: 0;
    text-align: center;
}

body.nc-auth-body .nc-auth-heading h1 {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

body.nc-auth-body .nc-auth-red {
    color: var(--na-red-bright);
    text-shadow: 0 0 14px rgba(232, 37, 58, 0.45);
}

body.nc-auth-body .nc-auth-gold {
    color: var(--na-gold-bright);
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

body.nc-auth-body .nc-auth-heading p {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(240, 208, 96, 0.6);
}

body.nc-auth-body .nc-auth-login-success {
    margin: 4px 0;
    padding: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--na-gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(196, 24, 45, 0.1);
}

/* ——— Campos ——— */
body.nc-auth-body .nc-auth-form { margin: 0; }

body.nc-auth-body .nc-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 12px;
}

body.nc-auth-body .nc-field { margin: 0; }

body.nc-auth-body .nc-field label {
    display: block;
    margin-bottom: 4px;
    font-family: "Rajdhani", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--na-gold);
}

body.nc-auth-body .nc-input-wrap { position: relative; }

body.nc-auth-body .nc-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 40px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.26);
    background: rgba(0, 0, 0, 0.55);
    color: #f5f5f5;
    font-family: "Rajdhani", sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: inset 0 0 16px rgba(196, 24, 45, 0.05);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.nc-auth-body .nc-input::placeholder { color: rgba(245, 245, 245, 0.35); }

body.nc-auth-body .nc-input:focus {
    border-color: var(--na-gold);
    box-shadow: 0 0 0 3px var(--na-gold-dim), 0 0 16px rgba(196, 24, 45, 0.18);
}

body.nc-auth-body .nc-input-wrap-left .nc-icon-left {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--na-gold);
    opacity: 0.85;
    pointer-events: none;
}

body.nc-auth-body .nc-input-wrap-left .nc-icon-left svg {
    width: 17px;
    height: 17px;
}

/* ——— Alertas ——— */
body.nc-auth-body .nc-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-family: "Rajdhani", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

body.nc-auth-body .nc-alert-error {
    background: rgba(80, 0, 10, 0.65);
    border: 1px solid rgba(232, 37, 58, 0.5);
    color: #ffc9cf;
}

body.nc-auth-body .nc-alert-success {
    background: rgba(40, 30, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--na-gold-bright);
}

body.nc-auth-body .nc-alert-success a { color: #fff; font-weight: 700; }

body.nc-auth-body .nc-alert-icon,
body.nc-auth-body .nc-alert-icon svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ——— Cloudflare + botão ——— */
body.nc-auth-body .nc-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.nc-auth-body .nc-turnstile-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
}

body.nc-auth-body .nc-turnstile-wrap.nc-turnstile-local {
    padding: 6px;
    font-size: 11px;
    color: rgba(240, 208, 96, 0.55);
    border: 1px dashed rgba(212, 175, 55, 0.2);
    border-radius: 8px;
}

body.nc-auth-body .nc-turnstile-target,
body.nc-auth-body #nc-turnstile-target {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 65px;
    margin: 0 auto;
}

body.nc-auth-body .nc-turnstile-wrap iframe,
body.nc-auth-body .nc-turnstile-target > div {
    margin-left: auto !important;
    margin-right: auto !important;
}

body.nc-auth-body .nc-turnstile-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 12px;
    color: rgba(240, 208, 96, 0.7);
}

body.nc-auth-body .nc-turnstile-fail {
    margin: 0;
    font-size: 12px;
    color: #ffc9cf;
}

body.nc-auth-body .nc-turnstile-retry {
    margin-left: 6px;
    padding: 3px 10px;
    border: 1px solid rgba(232, 37, 58, 0.5);
    border-radius: 6px;
    background: rgba(196, 24, 45, 0.18);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}

body.nc-auth-body .nc-auth-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    font-family: "Rajdhani", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #140800;
    background: linear-gradient(135deg, #f5d76e 0%, #d4af37 45%, #a67c1a 100%);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3), 0 0 0 1px rgba(196, 24, 45, 0.3);
    transition: filter 0.15s, transform 0.12s, box-shadow 0.15s;
}

body.nc-auth-body .nc-auth-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%) skewX(-18deg);
    animation: na-shine 3.8s ease-in-out infinite;
}

@keyframes na-shine {
    0%, 65%, 100% { transform: translateX(-120%) skewX(-18deg); }
    80% { transform: translateX(160%) skewX(-18deg); }
}

body.nc-auth-body .nc-auth-submit:hover {
    filter: brightness(1.08);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.45), 0 0 20px rgba(196, 24, 45, 0.3);
}

body.nc-auth-body .nc-auth-submit:active { transform: scale(0.985); }

body.nc-auth-body .nc-auth-submit span { position: relative; z-index: 1; }

/* ——— Rodapé do card: trocar tela + redes ——— */
body.nc-auth-body .nc-auth-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.14);
}

body.nc-auth-body .nc-auth-switch {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(245, 245, 245, 0.6);
}

body.nc-auth-body .nc-auth-switch a {
    color: var(--na-gold-bright);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 208, 96, 0.35);
    transition: color 0.15s, border-color 0.15s;
}

body.nc-auth-body .nc-auth-switch a:hover {
    color: var(--na-red-bright);
    border-color: var(--na-red-bright);
}

body.nc-auth-body .nc-auth-social {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

body.nc-auth-body .nc-auth-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(196, 24, 45, 0.1);
    color: var(--na-gold);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

body.nc-auth-body .nc-auth-social a:hover {
    background: rgba(196, 24, 45, 0.3);
    border-color: var(--na-red-bright);
    color: #fff;
}

body.nc-auth-body .nc-auth-social svg { width: 15px; height: 15px; }

/* Legado */
body.nc-auth-body .nc-auth-secondary,
body.nc-auth-body .na-btn-enter,
body.nc-auth-body .na-btn-ghost { display: none !important; }

/* ——— Telas baixas: aperta ainda mais pra nunca rolar ——— */
@media (max-height: 640px) {
    body.nc-auth-body .nc-auth-shell { padding-top: 6px; }
    body.nc-auth-body .nc-cyber-titlebar { display: none; }
    body.nc-auth-body .nc-cyber-body { padding: 12px 16px 10px; }
    body.nc-auth-body .nc-auth-brand { margin-bottom: 10px; padding-bottom: 10px; }
    body.nc-auth-body .nc-auth-brand { gap: 6px; }
    body.nc-auth-body .nc-auth-logo { width: 90px; height: 90px; }
    body.nc-auth-body .nc-auth-heading h1 { font-size: 19px; }
    body.nc-auth-body .nc-auth-heading p { font-size: 11px; margin-top: 2px; }
    body.nc-auth-body .nc-auth-fields { gap: 6px; margin-bottom: 8px; }
    body.nc-auth-body .nc-field label { margin-bottom: 2px; font-size: 10px; }
    body.nc-auth-body .nc-input { height: 36px; }
    body.nc-auth-body .nc-auth-actions { gap: 8px; }
    body.nc-auth-body .nc-auth-submit { height: 40px; }
    body.nc-auth-body .nc-auth-bottom { margin-top: 8px; padding-top: 8px; }
}

@media (max-height: 540px) {
    body.nc-auth-body .nc-auth-footer { display: none; }
    body.nc-auth-body .nc-auth-logo-wrap { display: none !important; }
    body.nc-auth-body .nc-field label { display: none; }
}

@media (max-width: 380px) {
    body.nc-auth-body .nc-auth-shell { padding-left: 10px; padding-right: 10px; }
    body.nc-auth-body .nc-cyber-body { padding-left: 14px; padding-right: 14px; }
    body.nc-auth-body .nc-auth-heading h1 { font-size: 19px; }
    body.nc-auth-body .nc-auth-switch { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    body.nc-auth-body .nc-cyber-terminal,
    body.nc-auth-body .nc-auth-submit::before { animation: none; }
}
