.login-page {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--app-canvas) 0%, var(--app-canvas-mid) 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-hero {
    display: none;
  }
}

.login-panel {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--surface-card);
  border-right: 1px solid var(--surface-card-border);
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .login-panel {
    padding: 24px 20px 20px;
  }
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--theme-maroon-bright) 0%, var(--theme-maroon-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-gray-50);
  font-weight: 800;
  font-size: 19px;
  box-shadow: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-black);
}

.brand-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--theme-gray-500);
}

.login-badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--theme-gray-600);
  background: var(--theme-gray-50);
}

.login-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--theme-red);
  box-shadow: none;
}

.login-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--theme-gray-500);
}

.login-header-eyebrow-pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: var(--theme-white);
  font-size: 11px;
}

.login-header h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.02em;
  color: var(--theme-black);
}

.login-header p {
  margin: 0;
  color: var(--theme-gray-600);
  font-size: 14px;
  max-width: 30rem;
}

.login-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--theme-gray-500);
}

.login-meta-divider {
  width: 1px;
  height: 14px;
  background: var(--theme-gray-100);
}

.login-meta-strong {
  color: var(--theme-black);
}

/* Role toggle */

.login-role-toggle {
  display: inline-flex;
  border: 1px solid var(--theme-gray-200);
  border-radius: 10px;
  overflow: hidden;
  align-self: flex-start;
}

.login-role-btn {
  padding: 8px 20px;
  border: none;
  background: var(--theme-white);
  color: var(--theme-gray-600);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.login-role-btn:not(:last-child) {
  border-right: 1px solid var(--theme-gray-200);
}

.login-role-btn:hover {
  background: var(--theme-gray-50);
}

.login-role-btn--active {
  background: linear-gradient(180deg, var(--theme-maroon-bright) 0%, var(--theme-maroon-deep) 100%);
  color: var(--theme-white);
}

.login-role-btn--active:hover {
  filter: brightness(1.08);
}

/* Form */

.login-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-black);
}

.form-label-hint {
  font-size: 12px;
  color: var(--theme-gray-500);
}

.form-field input {
  border-radius: 10px;
  border: 1px solid var(--theme-gray-200);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--theme-white);
  color: var(--theme-black);
  outline: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
  box-shadow: none;
}

.form-field input::placeholder {
  color: var(--theme-gray-400);
}

.form-field input:focus-visible {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-border);
  background: var(--theme-white);
}

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

.login-error {
  margin-top: 10px;
  border: 1px solid var(--theme-red-border);
  background: var(--theme-red-soft);
  color: var(--theme-red-deep);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}

.login-footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--theme-gray-400);
}

.login-footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-footer-pill {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--theme-gray-400);
}

.login-hero {
  position: relative;
  background: linear-gradient(160deg, #1a0a0c 0%, #2d1014 40%, #1f0a0c 100%);
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  border-left: 1px solid rgba(128, 0, 0, 0.35);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--theme-gray-100);
}

.hero-tag-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--theme-gray-50);
  color: var(--theme-gray-900);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-tag-badge--admin {
  background: var(--theme-red-soft);
  color: var(--theme-red-deep);
}

.hero-tag-badge--executor {
  background: var(--theme-gray-100);
  color: var(--theme-black);
}

.hero-heading {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 25rem;
}

.hero-heading h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--theme-white);
}

.hero-heading p {
  font-size: 14px;
  color: rgba(228, 228, 231, 0.88);
}

.hero-metrics {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  padding: 10px 10px 9px;
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(212, 212, 216, 0.85);
}

.metric-value {
  font-size: 19px;
  font-weight: 600;
  color: var(--theme-white);
}

.metric-footnote {
  font-size: 11px;
  color: rgba(212, 212, 216, 0.65);
}

.hero-grid {
  margin-top: 26px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}

.hero-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-grid-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(212, 212, 216, 0.85);
}

.hero-grid-pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  font-size: 11px;
  color: rgba(250, 250, 250, 0.95);
}

.hero-grid-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.hero-grid-cell {
  padding: 6px 7px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  font-size: 11px;
  color: rgba(228, 228, 231, 0.9);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-grid-cell--accent {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(128, 0, 0, 0.35);
}

.hero-grid-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-grid-status {
  font-size: 11px;
  color: var(--theme-white);
}

.hero-footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(212, 212, 216, 0.75);
}
