/* =====================================================================
 *  auth.css — tela de login/registro + widget de conta (Fase 1)
 *  Autossuficiente: a _login.php NÃO carrega style.css.
 *  Tema várzea: campo verde + canarinho.
 * ===================================================================== */

:root {
    --auth-bg-1:   #0a0f0d;
    --auth-bg-2:   #0d1b12;
    --auth-card:   #11241a;
    --auth-line:   #2f5d3f;
    --auth-green:  #43c463;
    --auth-yellow: #ffd633;
    --auth-text:   #e8f2e8;
    --auth-dim:    #9bb3a0;
    --auth-err:    #ff6b5e;
    --auth-ok:     #58d68d;
    --auth-mono:   'Share Tech Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

.auth-screen {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--auth-mono);
    color: var(--auth-text);
    background:
        radial-gradient(120% 90% at 50% -10%, #16341f 0%, var(--auth-bg-2) 55%, var(--auth-bg-1) 100%);
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    padding: 26px 24px 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}

/* Cabeçalho */
.auth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.auth-head img { image-rendering: auto; }
.auth-title { font-size: 22px; font-weight: 700; letter-spacing: 1px; line-height: 1; }
.auth-sub { font-size: 10px; color: var(--auth-yellow); letter-spacing: 2px; margin-top: 4px; }

/* Abas */
.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.auth-tab {
    flex: 1;
    padding: 9px 0;
    font-family: var(--auth-mono);
    font-size: 13px;
    color: var(--auth-dim);
    background: transparent;
    border: 1px solid var(--auth-line);
    border-radius: 7px;
    cursor: pointer;
    transition: all .15s;
}
.auth-tab:hover { color: var(--auth-text); }
.auth-tab.is-active { color: #06210f; background: var(--auth-green); border-color: var(--auth-green); font-weight: 700; }

/* Formulários */
.auth-form { display: none; flex-direction: column; gap: 13px; }
.auth-form.is-active { display: flex; }
.auth-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--auth-dim); }
.auth-form label small { color: #6f8a76; }
.auth-form input {
    font-family: var(--auth-mono);
    font-size: 14px;
    color: var(--auth-text);
    background: #0c1a11;
    border: 1px solid var(--auth-line);
    border-radius: 7px;
    padding: 10px 11px;
    outline: none;
    transition: border-color .15s;
}
.auth-form input:focus { border-color: var(--auth-green); }

.auth-hint { font-size: 11px; line-height: 1.5; color: var(--auth-dim); margin: 0; }

.auth-btn {
    margin-top: 4px;
    padding: 11px 0;
    font-family: var(--auth-mono);
    font-size: 14px;
    font-weight: 700;
    color: #06210f;
    background: var(--auth-yellow);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: filter .15s, opacity .15s;
}
.auth-btn:hover { filter: brightness(1.08); }
.auth-btn:disabled { opacity: .6; cursor: default; }

/* Mensagem */
.auth-msg {
    margin: 14px 0 0;
    padding: 9px 11px;
    font-size: 12px;
    border-radius: 7px;
    line-height: 1.4;
}
.auth-msg.error { color: var(--auth-err); background: rgba(255, 107, 94, .1); border: 1px solid rgba(255, 107, 94, .35); }
.auth-msg.ok    { color: var(--auth-ok);  background: rgba(88, 214, 141, .1); border: 1px solid rgba(88, 214, 141, .35); }

.auth-foot { margin: 16px 0 0; font-size: 10px; text-align: center; color: #6f8a76; letter-spacing: 1px; }

/* =====================================================================
 *  Conta no jogo: chip (header da economia) + modal de conta
 * ===================================================================== */
.account-chip {
    display: inline-flex; align-items: center; gap: 7px;
    max-width: 100%;
    padding: 6px 11px;
    font-family: var(--auth-mono); font-size: 12px;
    color: var(--auth-text);
    background: rgba(10, 20, 13, .5);
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    cursor: pointer;
}
.account-chip[hidden] { display: none; }
.account-chip:hover { border-color: var(--auth-green); }
.account-chip-ico { font-size: 14px; }
.account-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }

.futi-acc-overlay {
    position: fixed; inset: 0; z-index: 9500;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(0, 0, 0, .55);
}
.futi-acc-overlay[hidden] { display: none; }
.futi-acc-modal {
    position: relative;
    width: 100%; max-width: 360px;
    padding: 22px 20px;
    font-family: var(--auth-mono); color: var(--auth-text);
    background: var(--auth-card); border: 1px solid var(--auth-line);
    border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.futi-acc-close {
    position: absolute; top: 10px; right: 12px;
    background: none; border: none; color: var(--auth-dim);
    font-size: 16px; cursor: pointer; line-height: 1;
}
.futi-acc-close:hover { color: var(--auth-text); }
.futi-acc-title { font-size: 16px; font-weight: 700; color: var(--auth-yellow); margin-bottom: 14px; }
.futi-acc-info { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.futi-acc-line { display: flex; justify-content: space-between; gap: 10px; }
.futi-acc-label { color: var(--auth-dim); }
.futi-acc-line span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.futi-acc-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; white-space: normal; overflow: visible; max-width: 72%; }
.futi-acc-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }

.futi-acc-actions { display: flex; flex-direction: column; gap: 8px; }
.futi-acc-btn {
    display: block; width: 100%; text-align: center; text-decoration: none;
    font-family: var(--auth-mono); font-size: 13px;
    color: var(--auth-text); background: #0c1a11;
    border: 1px solid var(--auth-line); border-radius: 7px;
    padding: 10px; cursor: pointer; box-sizing: border-box;
}
.futi-acc-btn:hover { border-color: var(--auth-green); }
.futi-acc-btn.danger { color: var(--auth-err); border-color: rgba(255, 107, 94, .4); }
.futi-acc-btn.danger:hover { border-color: var(--auth-err); }
.futi-acc-btn:disabled { opacity: .6; cursor: default; }

.futi-acc-admin { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--auth-line); }
.futi-acc-admin[hidden] { display: none; }
.futi-acc-admin-title { font-size: 12px; color: var(--auth-yellow); margin-bottom: 10px; }

/* Indicador de sincronização (injetado por cloud.js) */
.futi-sync {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9000;
    padding: 5px 10px;
    font-family: var(--auth-mono);
    font-size: 11px;
    color: var(--auth-dim);
    background: rgba(10, 20, 13, .82);
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    backdrop-filter: blur(3px);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.futi-sync.show { opacity: 1; transform: translateY(0); }

/* Link textual (esqueci a senha / voltar) */
.auth-link {
    display: inline-block;
    margin: 2px auto 0;
    padding: 4px;
    font-family: var(--auth-mono);
    font-size: 11px;
    color: var(--auth-dim);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-align: center;
}
.auth-link:hover { color: var(--auth-text); }

/* =====================================================================
 *  Feedback (botão flutuante + modal) — injetado por feedback.js
 * ===================================================================== */
.futi-fb-btn {
    position: fixed;
    bottom: 46px;
    left: 10px;
    z-index: 9000;
    padding: 6px 11px;
    font-family: var(--auth-mono);
    font-size: 11px;
    color: var(--auth-text);
    background: rgba(10, 20, 13, .82);
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(3px);
}
.futi-fb-btn:hover { border-color: var(--auth-green); }

.futi-fb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .55);
}
.futi-fb-overlay.show { display: flex; }

.futi-fb-modal {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 20px;
    font-family: var(--auth-mono);
    color: var(--auth-text);
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.futi-fb-title { font-size: 16px; font-weight: 700; color: var(--auth-yellow); }
.futi-fb-cat, .futi-fb-msg {
    font-family: var(--auth-mono);
    font-size: 13px;
    color: var(--auth-text);
    background: #0c1a11;
    border: 1px solid var(--auth-line);
    border-radius: 7px;
    padding: 9px 10px;
    outline: none;
}
.futi-fb-cat:focus, .futi-fb-msg:focus { border-color: var(--auth-green); }
.futi-fb-msg { resize: vertical; min-height: 90px; }

.futi-fb-status { margin: 0; font-size: 12px; line-height: 1.4; }
.futi-fb-status.error { color: var(--auth-err); }
.futi-fb-status.ok    { color: var(--auth-ok); }

.futi-fb-actions { display: flex; gap: 8px; justify-content: flex-end; }
.futi-fb-cancel, .futi-fb-send {
    font-family: var(--auth-mono);
    font-size: 13px;
    border-radius: 7px;
    padding: 8px 14px;
    cursor: pointer;
    border: 1px solid var(--auth-line);
}
.futi-fb-cancel { color: var(--auth-dim); background: transparent; }
.futi-fb-cancel:hover { color: var(--auth-text); }
.futi-fb-send { color: #06210f; background: var(--auth-yellow); border-color: var(--auth-yellow); font-weight: 700; }
.futi-fb-send:hover { filter: brightness(1.08); }
.futi-fb-send:disabled { opacity: .6; cursor: default; }
