/* tbp backend — extras on top of the main /style.css. */

/* Login pane — centred card with the single GitHub button. */
.backend-view-login {
    max-width: 360px;
    margin: 24px auto 0;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.login-form .info-action-btn { margin-top: 16px; }
.login-github-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1c1c1e !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
}
:root[data-theme-active="dark"] .login-github-btn {
    background: #f2f2f7 !important;
    color: #1c1c1e !important;
}
.login-github-btn:hover { opacity: 0.92; }

/* Subtle "or" divider between the OAuth button and the password
   fallback form. Centred line with text in the middle. */
.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 4px;
    color: var(--color-text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1 1 auto;
    border-top: 1px solid var(--color-border);
}
.login-password-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.login-password-form .info-label { margin-top: 6px; }
.login-password-form .info-action-btn { margin-top: 12px; }

/* "Back to frontend" link beneath the password form. Spaced apart
   from the error/status lines so it doesn't read as part of them. */
.login-back {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
}
.login-back a { color: var(--color-text-secondary); }
.login-back a:hover { color: var(--color-tint); }
.login-error {
    margin: 8px 0 0 0;
    color: #ff3b30;
    font-size: 13px;
}
:root[data-theme-active="dark"] .login-error { color: #ff453a; }

/* Sign-out button is a ghost variant — same shape as the primary
   actions, but no fill so it doesn't compete visually. */
.info-action-btn--ghost {
    background: transparent !important;
    color: var(--color-tint) !important;
    border: 1px solid var(--color-border) !important;
    margin-top: 24px !important;
}
