.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -20%, rgba(13,148,136,0.12) 0%, transparent 70%),
    var(--bg-canvas);
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.login-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.login-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.login-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.login-heading {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.login-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.login-note {
  margin-bottom: 24px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
}

.field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-input::placeholder { color: var(--text-muted); }

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.25);
}

.field-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}

.field-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
}

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

.field-link.is-disabled,
.field-link:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  text-decoration: none;
}

.field-link.is-disabled:hover,
.field-link:disabled:hover {
  text-decoration: none;
}

.btn-signin {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent-dim);
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 4px rgba(13,148,136,0.4);
}

.btn-signin:hover {
  background: var(--accent-dim);
  box-shadow: 0 2px 10px rgba(13,148,136,0.5), 0 0 0 3px rgba(13,148,136,0.25);
}

.btn-signin:active { transform: translateY(1px); }

.login-error {
  display: none;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 16px;
}

.login-error.is-visible {
  display: block;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.login-footer a { color: var(--accent); text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.login-divider-line { flex: 1; height: 1px; background: var(--border); }
.login-divider-text { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }

.btn-sso {
  width: 100%;
  padding: 9px;
  background: var(--bg-overlay);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.btn-sso:hover { background: var(--bg-muted); color: var(--text-primary); }

.btn-sso:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  background: var(--bg-overlay);
  color: var(--text-muted);
}

.btn-sso:disabled:hover {
  background: var(--bg-overlay);
  color: var(--text-muted);
}

.login-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.version-badge {
  text-align: center;
  margin-top: 28px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.login-footer-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0;
  cursor: not-allowed;
  font: inherit;
}
