:root {
  --card-bg: rgba(255, 255, 255, 0.70);
  --card-border: rgba(255, 255, 255, 0.30);
  --text: #0b1b22;
  --muted: rgba(11, 27, 34, 0.65);
  --primary: #0e4a59;
  --primary-hover: #0b3b47;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; color: var(--text); }

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: -1;
}

.center-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(520px, 92vw);
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card-inner {
  padding: 26px 26px 22px;
}

.brand {
  display: grid;
  place-items: center;
  padding: 14px 0 18px;
}

.brand-thumb {
  max-width: 260px;
  width: 72%;
  height: auto;
  opacity: 0.95;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 6px 0 16px;
}

.tab {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.65);
  cursor: pointer;
  font-weight: 600;
}

.tab.active {
  background: rgba(255,255,255,0.95);
  border-color: rgba(14, 74, 89, 0.25);
}

.panel { display: none; }
.panel.active { display: grid; gap: 12px; }

.flash {
  padding: 11px 13px;
  margin: 0 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(176, 0, 32, 0.25);
  background: rgba(176, 0, 32, 0.08);
  color: #8a0014;
  font-size: 14px;
  text-align: center;
}

label span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.agreement-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.agreement-acceptance input[type="checkbox"] {
  width: auto;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 auto;
}

.agreement-acceptance span {
  display: inline;
  margin: 0;
}

.agreement-acceptance a {
  color: var(--primary);
}

input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.85);
  outline: none;
}

input:focus {
  border-color: rgba(14, 74, 89, 0.55);
  box-shadow: 0 0 0 4px rgba(14, 74, 89, 0.12);
}

.primary {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: white;
  font: inherit;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
}

.primary:hover { background: var(--primary-hover); }

.twofactor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.twofactor-actions .primary {
  margin-top: 0;
}

.secondary-inline {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.secondary-inline:hover {
  background: rgba(255,255,255,0.35);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.12);
}

.entra-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 120, 212, 0.42);
  background: #0078d4;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.24);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.entra-button:hover {
  background: #0a6bba;
  box-shadow: 0 10px 24px rgba(0, 120, 212, 0.30);
  transform: translateY(-1px);
}

.entra-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.65),
    0 0 0 7px rgba(0, 120, 212, 0.42),
    0 10px 24px rgba(0, 120, 212, 0.30);
}

.entra-button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
}

.hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.forgot-password-link {
  margin: -2px 0 0;
  text-align: right;
}

.pending-approval-page {
  min-height: 100%;
  margin: 0;
  background: linear-gradient(to bottom, #f8f9f5, #f0f4ed, #e8f0e3);
}

.pending-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pending-card {
  width: min(760px, 94vw);
  text-align: center;
  color: #31442f;
}

.pending-illustration {
  display: block;
  width: min(640px, 92vw);
  height: auto;
  margin: 10px auto 0;
  opacity: 0.95;
  mix-blend-mode: multiply;
  filter: saturate(0.9) brightness(1.04);
  -webkit-mask-image: radial-gradient(circle, black 50%, transparent 100%);
  mask-image: radial-gradient(circle, black 50%, transparent 100%);
}

.pending-card h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  color: #263b25;
}

.pending-card p {
  max-width: 580px;
  margin: 0 auto;
  color: rgba(49, 68, 47, 0.85);
  line-height: 1.65;
}

.pending-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.pending-link:hover { text-decoration: underline; }