body.login-minimal {
  --topbar-offset: 0px;
  background: #f8fafc;
}

body.login-minimal.auth-body {
  padding-top: 0;
}

body.login-minimal .topbar,
body.login-minimal .background-glow {
  display: none;
}

.auth-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.auth-layout .messages {
  width: min(420px, 100%);
}

.auth-card {
  width: min(420px, 100%);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.auth-form-panel {
  padding: 2rem 1.75rem 1.75rem;
  background: #ffffff;
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-brand-logo {
  width: min(160px, 58%);
  height: auto;
  display: block;
}

.auth-form-header {
  margin-bottom: 1.4rem;
  text-align: center;
}

.auth-form-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.auth-form-panel .form-grid {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
}

.auth-field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-input-shell {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-input-icon i {
  font-size: 1rem;
  line-height: 1;
}

.auth-form-panel .input {
  min-height: 3.25rem;
  padding: 0 0.95rem 0 2.85rem;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
}

.auth-form-panel .input::placeholder {
  color: #9aa7b8;
}

.auth-form-panel .input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-form-actions {
  margin-top: 0.25rem;
}

.auth-form-copy {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.auth-status-panel {
  display: grid;
  justify-items: center;
  text-align: center;
}

.auth-panel-icon {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: #1d4ed8;
}

.auth-panel-icon i {
  font-size: 1.6rem;
  line-height: 1;
}

.auth-secondary-actions {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.auth-secondary-link {
  color: #1d4ed8;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-secondary-link:hover,
.auth-secondary-link:focus-visible {
  color: #1e40af;
  text-decoration: underline;
}

.auth-submit-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-submit {
  width: 100%;
  min-height: 3.25rem;
  border-radius: 14px;
  background: #1d4ed8;
  box-shadow: none;
}

.auth-submit:hover {
  transform: none;
  background: #1e40af;
}

.auth-company-summary {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #f8fbff;
  color: #0f172a;
}

.auth-company-eyebrow {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-selector-list {
  display: grid;
  gap: 0.85rem;
}

.company-selector-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #ffffff;
}

.company-selector-copy {
  display: grid;
  gap: 0.2rem;
}

.company-selector-copy span {
  color: #475569;
  font-size: 0.95rem;
}

.company-selector-muted {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.company-selector-muted h2,
.company-form-section h2 {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 1rem;
}

.company-selector-muted-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #64748b;
}

.company-form-section {
  margin-top: 0.5rem;
}

.auth-form-divider,
.auth-form-note {
  display: none;
}

@media (max-width: 640px) {
  .auth-layout {
    padding: 1rem;
  }

  .auth-card {
    border-radius: 20px;
  }

  .auth-form-panel {
    padding: 1.5rem 1.15rem 1.15rem;
  }

  .auth-brand {
    margin-bottom: 1.2rem;
  }
}

body[data-theme="dark"].login-minimal {
  background: #0B0D10;
}

body[data-theme="dark"].login-minimal .auth-card,
body[data-theme="dark"].login-minimal .auth-form-panel {
  border-color: #5D6F82;
  background: #2A333D;
  box-shadow: 0 18px 34px rgba(23, 28, 34, 0.28);
}

body[data-theme="dark"].login-minimal .auth-company-summary,
body[data-theme="dark"].login-minimal .company-selector-card {
  border-color: #5D6F82;
  background: #0B0D10;
  color: #E7EEF5;
}

body[data-theme="dark"].login-minimal .auth-company-eyebrow,
body[data-theme="dark"].login-minimal .company-selector-copy span,
body[data-theme="dark"].login-minimal .company-selector-muted-list {
  color: #5D6F82;
}

body[data-theme="dark"].login-minimal .company-selector-muted {
  border-top-color: #5D6F82;
}

body[data-theme="dark"].login-minimal .company-selector-muted h2,
body[data-theme="dark"].login-minimal .company-form-section h2 {
  color: #E7EEF5;
}

body[data-theme="dark"].login-minimal .auth-form-header h1 {
  color: #E7EEF5;
}

body[data-theme="dark"].login-minimal .auth-form-copy {
  color: #9AABBA;
}

body[data-theme="dark"].login-minimal .auth-field label {
  color: #5D6F82;
}

body[data-theme="dark"].login-minimal .auth-input-icon {
  color: #5D6F82;
}

body[data-theme="dark"].login-minimal .auth-form-panel .input {
  border-color: #5D6F82;
  background: #0B0D10;
  color: #E7EEF5;
}

body[data-theme="dark"].login-minimal .auth-form-panel .input::placeholder {
  color: #5D6F82;
}

body[data-theme="dark"].login-minimal .auth-form-panel .input:focus {
  border-color: #67E8F9;
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.16);
}

body[data-theme="dark"].login-minimal .auth-submit {
  background: #06B6D4;
}

body[data-theme="dark"].login-minimal .auth-submit:hover {
  background: #0891B2;
}

body[data-theme="dark"].login-minimal .auth-panel-icon {
  background: rgba(6, 182, 212, 0.18);
  color: #67E8F9;
}

body[data-theme="dark"].login-minimal .auth-secondary-link {
  color: #67E8F9;
}

body[data-theme="dark"].login-minimal .auth-secondary-link:hover,
body[data-theme="dark"].login-minimal .auth-secondary-link:focus-visible {
  color: #A5F3FC;
}
