:root {
    --bg: #1a1712;
    --panel: #24211a;
    --panel-border: #3a3527;
    --text: #ece6d8;
    --text-dim: #a89d84;
    --accent: #3c9ce6;
    --error: #e05a4f;
    --success: #6fbf73;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
}

.back-link {
    display: inline-block;
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 16px;
}

.back-link:hover { color: var(--accent); }

h1 {
    margin: 0 0 4px;
    font-size: 24px;
    color: var(--accent);
}

.subtitle {
    color: var(--text-dim);
    font-size: 13px;
    margin: 0 0 24px;
}

.step { display: none; }
.step.active { display: block; }

label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    background: #14120e;
    color: var(--text);
    font-size: 15px;
    margin-bottom: 16px;
}

input:focus { outline: 2px solid var(--accent); }

button {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #1a1712;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
}

button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

button.secondary {
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text);
}

.button-link {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    background: var(--accent);
    color: #1a1712;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
}

.button-link.secondary {
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text);
}

.loading-bar {
    display: none;
    height: 3px;
    border-radius: 2px;
    background: var(--panel-border);
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
}

.loading-bar.active { display: block; }

.loading-bar.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: var(--accent);
    animation: loading-slide 1s ease-in-out infinite;
}

@keyframes loading-slide {
    0% { left: -30%; }
    50% { left: 60%; }
    100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
    .loading-bar.active::after { animation: none; left: 0; width: 100%; }
}

.message {
    font-size: 13.5px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}

.message.error { display: block; background: rgba(224, 90, 79, 0.15); color: var(--error); }
.message.success { display: block; background: rgba(111, 191, 115, 0.15); color: var(--success); }

.divider {
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    margin: 16px 0;
}

.returning-info {
    background: #14120e;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 4px 14px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--panel-border);
    font-size: 14px;
}

.info-row:last-child { border-bottom: none; }

.info-label {
    color: var(--text-dim);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-row span:last-child {
    font-family: "Consolas", monospace;
    letter-spacing: 0.5px;
}

.activation-code {
    font-size: 32px;
    letter-spacing: 4px;
    text-align: center;
    color: var(--accent);
    font-weight: 700;
    padding: 16px;
    background: #14120e;
    border-radius: 10px;
    margin-bottom: 16px;
}

.support-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--panel-border);
    text-align: center;
    font-size: 12.5px;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-footer a {
    color: var(--accent);
    text-decoration: none;
}

.support-footer a:hover { text-decoration: underline; }

/* Aviso LGPD resumido em activate.php - pedido do usuario */
.privacy-notice {
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}
.privacy-notice a { color: var(--accent); text-decoration: none; }
.privacy-notice a:hover { text-decoration: underline; }
.privacy-notice .privacy-links { margin-top: 6px; }
.privacy-notice .privacy-links a { margin-right: 12px; }

/* Paginas de texto longo (Politica de Privacidade/Termos) - card mais largo
   que o .card padrao (420px, pensado pro formulario de ativacao) e tipografia
   de leitura (paragrafos/listas), reaproveitando as MESMAS variaveis de cor. */
.doc-card { max-width: 720px; text-align: left; }
.doc-card h1 { margin-bottom: 2px; }
.doc-card h2 { font-size: 17px; color: var(--text); margin: 28px 0 8px; }
.doc-card h2:first-of-type { margin-top: 20px; }
.doc-card p { line-height: 1.6; margin: 8px 0; }
.doc-list { line-height: 1.6; padding-left: 20px; margin: 8px 0; }
.doc-list li { margin-bottom: 6px; }
.doc-footnote { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--panel-border); font-size: 12px; color: var(--text-dim); }
.doc-footnote a { color: var(--accent); }
