/* ============================================================
   xPulse Chat – views/login.css
   ============================================================ */

.login-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 1rem;
}

.login-logo {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
    text-align: center;
    padding-top: 3rem;
    text-decoration: none;
    display: block;
    -webkit-tap-highlight-color: transparent;
}
.login-logo:visited { color: var(--accent); }

.login-tagline {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.login-box {
    width: 100%;
    max-width: 340px;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 0.5rem;
    line-height: 1.8;
}

.login-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.login-footer-link {
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.15s;
}
.login-footer-link:hover { color: var(--accent); }

.login-online-count {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

/* ── Terms Checkbox ── */

.login-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.7;
    cursor: pointer;
}
.login-terms input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}
.login-terms a {
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}
.login-terms a:hover { color: var(--accent2); }

.btn-primary.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Footer (pinned bottom) ── */

.login-footer {
    width: 100%;
    max-width: 340px;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 2rem;
}

.login-footer-links {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    row-gap: 0.3rem;
    padding-bottom: 0.15rem;
}
.login-footer.open .login-footer-links { display: flex; }
.login-footer-links .login-footer-link + .login-footer-link::before {
    content: "·";
    color: #555;
    margin: 0 0.4rem;
}

.login-footer-toggle {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 14px;
    cursor: pointer;
    padding: 0.1rem 0.4rem;
    line-height: 1;
    transition: color 0.15s;
}
.login-footer-toggle:hover { color: var(--text); }
.login-footer.open .login-footer-toggle { display: none; }

.login-footer-divider {
    width: 100%;
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.1rem 0;
}

.login-version-pill {
    display: flex;
    justify-content: center;
}
.login-version-pill a {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.15rem 0.6rem;
    transition: border-color 0.15s, color 0.15s;
}
.login-version-pill a:hover { border-color: var(--accent2); color: var(--accent2); }
