/* DdtAccounts: the sign-in, registration and password pages. Only the tokens of the shared theme (common.css of Ai4Users) are used,
   with fallbacks for a service without them. A service may change single elements in its own CSS:
   --auth-head-bg (the title band, by default the dark top menu), --auth-head-text, --auth-primary-bg (the main button),
   --auth-register-bg (the band "Nie masz jeszcze konta?", by default the striped warning), --auth-card-width. */
.AuthArea { display: grid; justify-items: center; gap: 12px; padding: 18px 0 32px; }
.AuthCard { width: min(100%, var(--auth-card-width, 420px)); box-sizing: border-box; overflow: hidden; border: 1px solid var(--line, #d8dce6); border-radius: 16px;
    background: var(--surface, #fff); color: var(--text, #111827); box-shadow: 0 8px 30px rgba(15, 23, 42, .08); }
.AuthHead { padding: 14px 26px; border-bottom: 1px solid rgba(255, 255, 255, .18);
    background: var(--auth-head-bg, radial-gradient(circle at 7% 45%, rgba(148, 197, 255, .12), transparent 14rem), linear-gradient(180deg, #0b1120 0%, #121b30 100%)); }
.AuthHead h2 { margin: 0; color: var(--auth-head-text, #fff); font-size: 1.15rem; letter-spacing: .02em; }
html[data-theme="dark"] .AuthHead { border-bottom-color: rgba(255, 255, 255, .25); }
.AuthBody { display: grid; gap: 12px; padding: 20px 26px 24px; font-size: .92rem; }
.AuthBody form { display: grid; gap: 12px; margin: 0; }
.AuthBody p { margin: 0; }

.AuthBody .AuthField { display: grid; gap: 4px; font-size: .86rem; font-weight: 700; }
.AuthBody .AuthField input { box-sizing: border-box; width: 100%; padding: .6rem .7rem; border: 1px solid var(--line-strong, #cfd6e4); border-radius: 10px;
    background: var(--surface, #fff); color: var(--text, #111827); font: inherit; font-size: .95rem; font-weight: 400; }
.AuthBody .AuthField input:focus { outline: 2px solid color-mix(in srgb, var(--brand, #2f5ef6) 45%, transparent); outline-offset: 0; border-color: var(--brand, #2f5ef6); }
.AuthBody .AuthField small { color: var(--muted, #6b7280); font-size: .78rem; font-weight: 400; }
.AuthBody .AuthCheck { display: flex; gap: 7px; align-items: center; font-size: .86rem; cursor: pointer; }
.AuthBody .AuthCheck input { width: 16px; height: 16px; margin: 0; }
.AuthBody .AuthCheck a { font-weight: 800; }

.AuthBody .AuthPrimary { display: inline-flex; justify-content: center; align-items: center; width: 100%; padding: .65rem 1rem; border: 1px solid transparent; border-radius: 999px;
    background: var(--auth-primary-bg, var(--brand, #2f5ef6)); color: #fff; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.AuthBody .AuthPrimary:hover { filter: brightness(1.08); color: #fff; }
.AuthBody .AuthPrimary:disabled { opacity: .55; cursor: default; filter: none; }
.AuthBody .AuthLinks { display: grid; gap: 6px; font-size: .86rem; }
.AuthBody .AuthHint { color: var(--muted, #6b7280); font-size: .8rem; }
.AuthBody .AuthHint button { padding: 0; border: 0; background: none; color: var(--link, #075ca8); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.AuthBody .AuthHint button:disabled { color: var(--muted, #6b7280); text-decoration: none; cursor: default; }
.AuthBody .AuthStepTitle { color: var(--text, #111827); font-size: 1.05rem; font-weight: 800; }

/* the account being signed in to, with "zmień" */
.AuthBody .AuthWho { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line, #d8dce6); border-radius: 12px;
    background: var(--surface-soft, #f1f3f8); font-size: .9rem; }
.AuthBody .AuthWho b { overflow-wrap: anywhere; }
.AuthBody .AuthWho a, .AuthBody .AuthWho button { margin-left: auto; padding: 0; border: 0; background: none; color: var(--link, #075ca8); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.AuthBody .AuthAvatar { flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand, #2f5ef6); color: #fff; font-weight: 900; }

/* "Nie masz jeszcze konta?": a separate band under the card in the warning style of the theme */
.AuthArea .AuthRegister { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; width: min(100%, var(--auth-card-width, 420px));
    box-sizing: border-box; padding: 14px 18px; border: 1px solid var(--warning-border, #e5b246); border-radius: 16px;
    background: var(--auth-register-bg, var(--warning-bg, linear-gradient(135deg, #fff9e4, #ffecaa))); color: var(--warning-text, #4a2b00); text-align: center; }
.AuthArea .AuthRegister b { color: var(--auth-register-title, #b91c1c); font-size: 1.05rem; font-weight: 950; }
.AuthArea .AuthRegister a { display: inline-flex; padding: 7px 18px; border: 1px solid var(--button-primary-border, #075ca8); border-radius: 999px;
    background: linear-gradient(180deg, var(--button-primary-bg, #075ca8), var(--button-primary-bg-2, #044f86)); color: var(--button-primary-text, #fff);
    font-weight: 950; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 18px rgba(3, 48, 90, .16); }
/* "Masz już konto?": a quiet band */
.AuthArea .AuthHaveAccount { width: min(100%, var(--auth-card-width, 420px)); box-sizing: border-box; padding: 12px 16px; border: 1px solid var(--line, #d8dce6); border-radius: 12px;
    background: var(--surface-soft, #f1f3f8); text-align: center; font-size: .92rem; }
.AuthArea .AuthHaveAccount a { font-weight: 800; }

/* the DDT account: the dark button with the yellow badge, the domain in yellow, "albo" between the ways */
.AuthBody .AuthOr { display: flex; align-items: center; gap: 10px; color: var(--muted, #6b7280); font-size: .78rem; }
.AuthBody .AuthOr::before, .AuthBody .AuthOr::after { content: ""; flex: 1; border-top: 1px solid var(--line, #d8dce6); }
.AuthBody .AuthDdtButton { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box; padding: .6rem 1rem;
    border: 1px solid #0b1f3a; border-radius: 999px; background: linear-gradient(180deg, #16325c, #0b1f3a); color: #fff; font: inherit; font-weight: 800;
    text-decoration: none; text-align: left; cursor: pointer; }
.AuthBody .AuthDdtButton:hover { filter: brightness(1.12); color: #fff; }
.AuthBody .AuthDdtButton > span:last-child { display: grid; line-height: 1.2; }
.AuthBody .AuthDdtButton small { color: rgba(255, 255, 255, .72); font-size: .74rem; font-weight: 600; }
.AuthBody .AuthDdtMark { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 5px; border-radius: 6px;
    background: #f5c400; color: #0b1f3a; font-size: .72rem; font-weight: 900; letter-spacing: .04em; }
.AuthBody .AuthDomain { color: #f5c400; font-weight: 800; }
.AuthBody .AuthDomainDark { color: var(--amber, #b45309); font-weight: 800; }
html[data-theme="dark"] .AuthBody .AuthDdtButton { border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }

/* an account of the DDT account: the countdown to the provider */
.AuthBody .AuthSsoNote { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid color-mix(in srgb, #16325c 30%, var(--line, #d8dce6));
    border-radius: 12px; background: color-mix(in srgb, #dbeafe 40%, var(--surface, #fff)); font-size: .86rem; }
.AuthBody .AuthCountdown { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: .84rem; }
.AuthBody .AuthCountdown b { font-variant-numeric: tabular-nums; }
.AuthBody .AuthCountdownBar { height: 5px; overflow: hidden; border-radius: 999px; background: var(--line, #d8dce6); }
.AuthBody .AuthCountdownBar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #16325c, #f5c400); transition: width 1s linear; }
.AuthBody .AuthLinkButton { padding: 0; border: 0; background: none; color: var(--link, #075ca8); font: inherit; font-size: .86rem; text-align: left; text-decoration: underline; cursor: pointer; }

/* "Co daje konto DDT?" on the registration */
.AuthBody .AuthKnowBox { padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--brand, #2f5ef6) 30%, var(--line, #d8dce6)); border-radius: 10px;
    background: color-mix(in srgb, var(--brand-soft, #dce6ff) 55%, var(--surface, #fff)); color: var(--text-soft, #374151); font-size: .8rem; line-height: 1.45; }
.AuthBody .AuthKnowBox b { color: var(--text, #111827); }
.AuthBody .AuthKnowBox ul { margin: 4px 0 6px; padding-left: 18px; }
.AuthBody .AuthProviders { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 2px 18px; }
.AuthBody .AuthProvider { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 5px 9px; border: 1px solid var(--line, #d8dce6); border-radius: 999px;
    background: var(--surface, #fff); color: var(--text, #111827); font-size: .9rem; font-weight: 700; }
.AuthBody .AuthProvider b { font-size: 1.05rem; font-weight: 900; }
.AuthBody .AuthProvider.Google b { color: #4285f4; }
.AuthBody .AuthProvider.GitHub b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #24292f; color: #fff; font-size: .75rem; }
.AuthBody .AuthProvider.Microsoft i { width: 15px; height: 15px; background: linear-gradient(90deg, #f25022 0 48%, transparent 48% 52%, #7fba00 52%) top / 100% 48% no-repeat,
    linear-gradient(90deg, #00a4ef 0 48%, transparent 48% 52%, #ffb900 52%) bottom / 100% 48% no-repeat; }

/* the account settings: a wider card with sections */
.AuthWide { --auth-card-width: 640px; }
.AuthBody .AuthSection { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line, #d8dce6); }
.AuthBody .AuthSection:first-of-type { padding-top: 0; border-top: 0; }
.AuthBody .AuthSection h3 { margin: 0; font-size: 1rem; }
.AuthBody .AuthRow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.AuthBody .AuthDanger { padding: .45rem 1rem; border: 1px solid #d92d20; border-radius: 999px; background: var(--surface, #fff); color: #b42318; font: inherit; font-weight: 700; cursor: pointer; }
.AuthBody .AuthHistory { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: .84rem; }
.AuthBody .AuthHistory li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 10px; padding: 4px 0; border-bottom: 1px solid var(--line, #d8dce6); }
.AuthBody .AuthHistory li span { color: var(--muted, #6b7280); font-variant-numeric: tabular-nums; }
.AuthBody .AuthHistory li small { grid-column: 2; color: var(--muted, #6b7280); overflow-wrap: anywhere; }

/* the confirmation of the administration mode: the card in the middle of the page whatever its grid */
.AdminConfirm { grid-column: 1 / -1; width: 100%; }
/* the administrative sign-in: the dark title band of the sign-in, the button in the dark red of the administration mode */
.AuthBody .AuthPrimary.AuthAdmin { background: var(--auth-admin-bg, linear-gradient(180deg, #b91c1c, #991b1b)); border-color: #7f1d1d; }
.AuthArea .AuthInfoBelow { width: min(100%, var(--auth-card-width, 420px)); }
.AuthArea .AuthInfoBelow > * { margin: 0; }

/* the list of the accounts (/Users) */
.AccountsList { display: grid; gap: 12px; padding: 16px 0 28px; }
.AccountsListHead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.AccountsListHead h2 { margin: 0; font-size: 1.3rem; }
.AccountsCount { color: var(--muted, #6b7280); font-size: .95rem; font-weight: 700; }
