:root {
  color-scheme: light;
}

.portal-login-body {
  min-height: 100vh;
  background: #f5f5f7;
}

.minimal-login-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.minimal-login-card {
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .07);
}

.minimal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 28px;
}

.minimal-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1d1d1f;
  box-shadow: none;
}

.minimal-brand .brand-mark span {
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.minimal-brand strong {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .08em;
}

.minimal-login-card h1 {
  margin: 0 0 24px;
  color: #1d1d1f;
  font-size: 32px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-align: center;
}

.minimal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: #f2f2f5;
}

.minimal-tabs .access-tab {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: #6e6e73;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transform: none;
}

.minimal-tabs .access-tab:hover {
  color: #1d1d1f;
  border: 0;
  background: rgba(255, 255, 255, .55);
  transform: none;
}

.minimal-tabs .access-tab.is-active {
  color: #1d1d1f;
  border: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.minimal-tabs .access-tab strong {
  font-size: 13px;
  font-weight: 600;
}

.minimal-login-form {
  gap: 12px;
}

.minimal-login-form .code-field {
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.minimal-login-form .code-field:focus-within {
  border-color: #1d1d1f;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .07);
}

.minimal-login-form .code-field input {
  height: 50px;
  padding: 0 15px;
  color: #1d1d1f;
  font-size: 14px;
  letter-spacing: 0;
}

.minimal-login-form .room-code-field input {
  letter-spacing: .06em;
}

.minimal-login-form .code-field input::placeholder {
  color: #86868b;
}

.minimal-login-form .primary-action {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #1d1d1f;
  border-radius: 12px;
  color: #fff;
  background: #1d1d1f;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  transform: none;
}

.minimal-login-form .primary-action:hover {
  border-color: #000;
  background: #000;
  transform: none;
}

.minimal-login-form .primary-action:disabled {
  border-color: #d2d2d7;
  color: #fff;
  background: #b0b0b5;
  opacity: 1;
}

.minimal-login-card .notice {
  margin: 0 0 16px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.minimal-login-card .notice-warning {
  border-color: rgba(178, 80, 0, .18);
  color: #8a4300;
  background: #fff8f2;
}

.minimal-login-card .notice-error {
  border-color: rgba(215, 0, 21, .16);
  color: #b00014;
  background: #fff5f6;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 480px) {
  .minimal-login-shell {
    padding: 16px;
  }

  .minimal-login-card {
    padding: 24px;
    border-radius: 14px;
  }
}
