/*
 * boot.css — Portal-specific layout and login overrides for License Portal Admin UI.
 * Loaded as an external stylesheet under strict CSP (`style-src 'self'`).
 */

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
}

.side-nav-link:hover {
    background: var(--color-surface-hover, rgba(0, 0, 0, 0.04));
}

.side-nav-link.active {
    background: var(--color-primary-bg, rgba(96, 165, 250, 0.1));
    font-weight: 600;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.main-content {
    padding: 0;
}

.card {
    background: var(--color-surface);
    padding: 1rem;
    border-radius: var(--radius-md, 6px);
    border: 1px solid var(--color-border);
    margin: 0.5rem 1rem;
}

.row-actions {
    display: flex;
    gap: 0.4rem;
}

.status-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.status-revoked {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.status-expired {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.status-unknown {
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
}

.info-banner {
    background: rgba(96, 165, 250, 0.1);
    border-left: 3px solid var(--color-primary);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-card {
    max-width: 460px;
    margin: 6rem auto;
    padding: 2rem;
}

.login-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-brand-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-primary);
}

.login-brand-subtitle {
    font-size: 0.9em;
    margin-top: 0.25rem;
}

.login-sso-section {
    margin-bottom: 1rem;
}

.login-sso-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.login-divider {
    text-align: center;
    font-size: 0.82em;
    margin: 1rem 0;
}

.login-error {
    margin-bottom: 0.85rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    font-size: 0.88em;
}

.login-footer-help {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.8em;
}

.login-mode-note {
    text-align: center;
    font-size: 0.8em;
    margin-top: 0.5rem;
}

.side-nav-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-bottom: 0.65rem;
}

.side-nav-username {
    font-size: 0.88em;
    font-weight: 600;
    word-break: break-all;
}

.side-nav-role {
    font-size: 0.75em;
}

.hidden {
    display: none !important;
}
