/* Deployer UI – SCS-inspired theme (Submerged Cooling Solutions) */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Roboto:wght@400;500;600;700&display=swap');

:root {
  /* SCS brand */
  --scs-cyan: rgb(0, 161, 214);
  --scs-cyan-dark: rgb(0, 129, 171);
  --scs-cyan-light: rgb(51, 189, 229);
  --scs-green: rgb(16, 185, 129);

  --bg: #ffffff;
  --panel: #f8fafc;
  --card: #ffffff;
  --text: rgb(18, 17, 16);
  --muted: rgb(100, 116, 139);
  --line: rgba(18, 17, 16, 0.08);
  --accent: var(--scs-cyan);
  --accent-hover: var(--scs-cyan-dark);
  --accent2: var(--scs-green);
  --shadow: 0 4px 20px rgba(0, 161, 214, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --max: 1100px;
  --pad: 20px;
  --font-heading: 'Orbitron', sans-serif;
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[data-theme="dark"] {
  --bg: rgb(18, 17, 16);
  --panel: rgb(28, 27, 26);
  --card: rgb(28, 27, 26);
  --text: rgb(245, 244, 243);
  --muted: rgb(160, 157, 155);
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* Subtle gradient glow (SCS-style) – dark mode only */
html[data-theme="dark"] body {
  background: radial-gradient(800px 600px at 20% 0%, rgba(0, 161, 214, 0.06), transparent 50%),
    var(--bg);
}

/* ----- Topbar (SCS Header style) ----- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
html[data-theme="dark"] .topbar {
  background: rgba(18, 17, 16, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--scs-cyan);
  box-shadow: 0 0 0 4px rgba(0, 161, 214, 0.2);
}
.brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  font-weight: 500;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ----- Preferences dropdown (exact SCS SettingsMenu match) ----- */
.prefs-wrap {
  position: relative;
}
.prefs-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.prefs-trigger:hover {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text);
}
.prefs-trigger[aria-expanded="true"] {
  border-color: var(--scs-cyan);
  color: var(--scs-cyan);
  background: rgba(0, 161, 214, 0.1);
}
.prefs-trigger-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.prefs-trigger-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}
.prefs-trigger[aria-expanded="true"] .prefs-trigger-chevron {
  transform: rotate(180deg);
}

.prefs-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 288px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 100;
  overflow: hidden;
}
.prefs-panel[hidden] {
  display: none;
}
.prefs-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(100, 116, 139, 0.1);
}
html[data-theme="dark"] .prefs-header {
  background: rgba(160, 157, 155, 0.08);
}
.prefs-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.prefs-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.prefs-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prefs-section-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.prefs-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.prefs-theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.prefs-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(100, 116, 139, 0.12);
  color: var(--muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
html[data-theme="dark"] .prefs-option {
  background: rgba(160, 157, 155, 0.08);
}
.prefs-option:hover {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text);
}
html[data-theme="dark"] .prefs-option:hover {
  background: rgba(160, 157, 155, 0.15);
}
.prefs-option[aria-pressed="true"] {
  border-color: var(--scs-cyan);
  color: var(--scs-cyan);
  background: rgba(0, 161, 214, 0.1);
}
.prefs-option-lang {
  flex-direction: row;
}
.prefs-flag {
  width: 24px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
}
.prefs-option-theme {
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px;
  font-size: 12px;
}
.prefs-option-theme svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.prefs-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  background: rgba(100, 116, 139, 0.1);
  font-size: 12px;
  color: var(--muted);
}
html[data-theme="dark"] .prefs-footer {
  background: rgba(160, 157, 155, 0.08);
}
.prefs-settings-link {
  background: none;
  border: none;
  color: var(--scs-cyan);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.prefs-settings-link:hover {
  text-decoration: underline;
}
.prefs-version {
  font-size: 12px;
  color: var(--muted);
}

/* ----- Container & grid ----- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
}
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: rgba(0, 161, 214, 0.12);
  border: 1px solid rgba(0, 161, 214, 0.3);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--accent);
}
.demo-banner[hidden] {
  display: none;
}
.demo-banner a {
  text-decoration: none;
}

.grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.grid-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

/* ----- Tiles (landing) ----- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.tile {
  display: block;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.tile:hover {
  border-color: rgba(0, 161, 214, 0.35);
  box-shadow: 0 4px 16px rgba(0, 161, 214, 0.12);
  transform: translateY(-2px);
}
.tile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.tile-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.tile-host {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.tile-host code {
  font-size: 11px;
  background: rgba(0, 161, 214, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}
.tile-tag {
  font-size: 12px;
  font-family: ui-monospace, monospace;
  color: var(--muted);
}

.detail-view-header {
  margin-bottom: 20px;
}
.back-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 24px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.empty-state-text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 400px;
}
.empty-state .btn {
  text-decoration: none;
}

/* ----- Cards (SCS card style) ----- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--pad);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card-full {
  width: 100%;
}
.card:hover {
  border-color: rgba(0, 161, 214, 0.25);
  box-shadow: var(--shadow-lg);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 14px;
}
.meta-item {
  font-size: 13px;
  color: var(--muted);
}
.meta-item code {
  color: var(--text);
  font-weight: 500;
  background: rgba(0, 161, 214, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.meta-label {
  font-weight: 600;
  color: var(--muted);
}

.card-deploy-steps {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.steps-title,
.history-title {
  margin: 0 0 12px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.deploy-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: rgba(100, 116, 139, 0.06);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.deploy-step .step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted);
  opacity: 0.5;
}
.deploy-step.step-pending .step-dot {
  background: var(--muted);
  opacity: 0.5;
}
.deploy-step.step-running .step-dot {
  background: #d97706;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.3);
  animation: pulse 1.5s ease-in-out infinite;
}
.deploy-step.step-ok .step-dot {
  background: var(--scs-green);
  opacity: 1;
}
.deploy-step.step-fail .step-dot {
  background: #dc2626;
  opacity: 1;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.deploy-step.step-running {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
}
.deploy-step.step-ok {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}
.deploy-step.step-fail {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.35);
}
.step-label {
  flex: 1;
}
.deploy-step.step-fail {
  flex-wrap: wrap;
}
.deploy-status-message {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  min-height: 1.2em;
}
.deploy-status-message:not(:empty) {
  color: var(--fg);
}
.step-error {
  width: 100%;
  flex-basis: 100%;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  font-size: 12px;
  color: #dc2626;
  word-break: break-word;
}

.card-history {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.card-history .history-list {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.card-history .history-list-hidden {
  display: none;
}
html[data-theme="dark"] .card:hover {
  border-color: rgba(0, 161, 214, 0.35);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.ok {
  color: var(--scs-green);
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}
.badge.warn {
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(217, 119, 6, 0.08);
}
.badge.err {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
}


.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* ----- History ----- */
.history-toggle {
  margin-top: 14px;
}
.history-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.history-list-hidden {
  display: none;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.history-item:last-child {
  border-bottom: none;
}
.history-item .tag {
  font-family: ui-monospace, monospace;
  color: var(--text);
  font-weight: 500;
}
.history-item .time {
  color: var(--muted);
  font-size: 12px;
}
.history-rollback-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, color 0.2s;
}
.history-rollback-btn:hover:not(:disabled) {
  background: rgba(0, 161, 214, 0.1);
}
.history-rollback-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.history-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0;
}

/* ----- Buttons (SCS primary / ghost) ----- */
.btn {
  border: 1px solid transparent;
  background: var(--scs-cyan);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font);
  font-size: 14px;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 12px rgba(0, 161, 214, 0.25);
}
.btn:hover:not(:disabled) {
  background: var(--scs-cyan-dark);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}
.btn.ghost:hover:not(:disabled) {
  background: rgba(0, 161, 214, 0.08);
  border-color: rgba(0, 161, 214, 0.3);
  color: var(--accent);
}
html[data-theme="dark"] .btn.ghost:hover:not(:disabled) {
  background: rgba(0, 161, 214, 0.12);
}

/* ----- Modal (SCS-style) ----- */
.modal {
  width: min(520px, calc(100% - 32px));
  border: none;
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  padding: 0;
  border: 1px solid var(--line);
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}
.modal-body {
  padding: 20px;
}

/* Settings modal: wider, form layout */
.modal-settings {
  width: min(640px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
}
.settings-intro {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
  line-height: 1.4;
}
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settings-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settings-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.settings-label span {
  font-weight: 500;
  color: var(--text);
}
.settings-input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.settings-input::placeholder {
  color: var(--muted);
}
.settings-input:focus {
  outline: none;
  border-color: var(--accent);
}
.settings-actions {
  padding-top: 8px;
}
.settings-env-hint {
  font-size: 12px;
  color: var(--muted);
  background: rgba(0, 161, 214, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.settings-input.settings-from-env {
  border-color: rgba(0, 161, 214, 0.4);
  background: rgba(0, 161, 214, 0.04);
}
.settings-env-list-section {
  margin-bottom: 20px;
}
.settings-env-list {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
  max-height: 240px;
  overflow-y: auto;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: none;
}
.label {
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}
.value {
  font-weight: 600;
  text-align: right;
  color: var(--text);
}

/* ----- Legend modal ----- */
.modal-legend {
  width: min(480px, calc(100% - 32px));
}
.legend-intro {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: var(--muted);
}
.legend-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legend-group-title {
  margin: 16px 0 8px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.legend-group-title:first-child {
  margin-top: 0;
}
.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-family: var(--font);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.legend-item:hover {
  background: rgba(0, 161, 214, 0.06);
  border-color: rgba(0, 161, 214, 0.25);
}
.legend-item-open {
  border-color: var(--scs-cyan);
  background: rgba(0, 161, 214, 0.08);
}
.legend-item-badge {
  display: flex;
  align-items: center;
}
.legend-item-badge .deploy-step {
  padding: 0;
  background: transparent;
  border: none;
}
.legend-item-chevron {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s;
}
.legend-item-open .legend-item-chevron {
  transform: rotate(90deg);
  color: var(--scs-cyan);
}
.legend-item-detail {
  padding: 14px 18px;
  margin: 0 0 8px 0;
  background: rgba(0, 161, 214, 0.06);
  border: 1px solid rgba(0, 161, 214, 0.2);
  border-radius: 8px;
}
.legend-desc,
.legend-fix {
  margin: 0 0 8px 0;
  font-size: 13px;
  line-height: 1.5;
}
.legend-desc:last-child,
.legend-fix:last-child {
  margin-bottom: 0;
}

/* ----- Login (landingspagina wanneer niet ingelogd) ----- */
.login-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.login-view[hidden] {
  display: none !important;
}
.app-view[hidden] {
  display: none !important;
}
.login-page {
  width: 100%;
  max-width: 400px;
}
.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.login-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}
.login-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.login-sub {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: var(--muted);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-error {
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  font-size: 14px;
  color: #b91c1c;
}
html[data-theme="dark"] .login-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.login-field input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.login-field input:focus {
  outline: none;
  border-color: var(--scs-cyan);
  box-shadow: 0 0 0 3px rgba(0, 161, 214, 0.15);
}
.login-btn {
  margin-top: 8px;
  width: 100%;
  padding: 14px;
  font-size: 15px;
}