:root {
  color-scheme: dark;
  --bg: #060910;
  --panel: rgba(15, 20, 32, 0.92);
  --panel-soft: rgba(15, 20, 32, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --success: #22c55e;
  --warning: #f97316;
  --error: #ef4444;
  --text: #f0f4ff;
  --text-muted: rgba(216, 226, 255, 0.75);
  --shadow: 0 28px 60px -34px rgba(0, 0, 0, 0.75);
  --navbar-height: 68px;
  font-family: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--navbar-height) + 18px);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(1400px 700px at 12% -12%, rgba(59, 130, 246, 0.2), transparent 65%),
    radial-gradient(900px 500px at 85% 0%, rgba(236, 72, 153, 0.18), transparent 70%),
    var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 320;
  background:
    linear-gradient(180deg, rgba(10, 16, 30, 0.9), rgba(6, 9, 16, 0.86)),
    rgba(6, 9, 16, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(0);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), margin-bottom 0.2s ease, box-shadow 0.24s ease;
  box-shadow: 0 18px 44px -40px rgba(4, 7, 14, 0.9);
  will-change: transform;
}

header.header--hidden {
  transform: translateY(-100%);
  margin-bottom: calc(-1 * var(--header-height, var(--navbar-height)));
}

.navbar {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px clamp(18px, 5vw, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

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

.brand-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: inline-flex;
  gap: 12px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.4);
}

.nav-link.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.6);
}

.servers-page {
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 64px) clamp(16px, 6vw, 36px) 96px;
  display: grid;
  gap: clamp(32px, 6vw, 48px);
}

.page-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: clamp(26px, 5vw, 34px);
  margin-top: -12px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(9, 13, 24, 0.82)),
    var(--panel);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 90px -46px rgba(8, 11, 22, 0.9);
  overflow: hidden;
  z-index: 0;
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
  isolation: isolate;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px at -10% 0%, rgba(59, 130, 246, 0.25), transparent 60%),
    radial-gradient(480px at 110% 20%, rgba(236, 72, 153, 0.15), transparent 70%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.page-header > * {
  position: relative;
  z-index: 1;
}


.title-block h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}

.title-block p {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
  font-size: 14px;
}

.page-controls {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5, 10, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.8);
}

.page-controls .button {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.9));
  color: #f8fafc;
  box-shadow: 0 16px 40px -26px rgba(59, 130, 246, 0.9);
}

.page-controls .button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 44px -24px rgba(59, 130, 246, 0.95);
}

.page-controls .button:active {
  transform: translateY(0) scale(0.99);
}


.button {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 18px 36px -22px rgba(59, 130, 246, 0.8);
}

.button.ghost {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button.is-loading::after {
  content: "";
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

.global-status {
  min-width: 160px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}


.global-status.error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.2);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.3);
}


.global-status.warning {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.2);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.3);
}

.global-status.success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.2);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.28);
}


.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: clamp(24px, 5vw, 36px);
}

.cards-placeholder {
  grid-column: 1 / -1;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.server-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.server-card.busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 16, 0.5);
  backdrop-filter: blur(2px);
  pointer-events: auto;
  cursor: progress;
  z-index: 3;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 16, 0) 35%, rgba(6, 9, 16, 0.65) 100%);
}

.card-media {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.card-body {
  display: grid;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 28px) clamp(20px, 5vw, 28px);
}

.card-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(8, 14, 26, 0.86)),
    rgba(8, 14, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px at -15% 30%, rgba(59, 130, 246, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.card-header > * {
  position: relative;
  z-index: 1;
}

.card-title-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}


.card-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.card-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  margin-left: auto;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  box-shadow: 0 18px 34px -26px rgba(59, 130, 246, 0.9);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.status-tag[data-state="unknown"] {
  background:
    linear-gradient(135deg, rgba(148, 163, 184, 0.18), rgba(71, 85, 105, 0.18)),
    rgba(71, 85, 105, 0.22);
  color: rgba(226, 232, 240, 0.85);
  box-shadow: 0 18px 30px -24px rgba(100, 116, 139, 0.5);
}

.status-tag[data-state="running"] {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(16, 185, 129, 0.14)),
    rgba(22, 163, 74, 0.25);
  color: #bbf7d0;
  box-shadow: 0 18px 36px -24px rgba(34, 197, 94, 0.6);
}


.status-tag[data-state="maintenance"] {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.26), rgba(29, 78, 216, 0.14)),
    rgba(37, 99, 235, 0.22);
  color: #bfdbfe;
  box-shadow: 0 18px 36px -24px rgba(59, 130, 246, 0.6);
}


.status-tag[data-state="starting"] {
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.3), rgba(13, 148, 136, 0.14)),
    rgba(13, 148, 136, 0.26);
  color: #99f6e4;
  box-shadow: 0 18px 34px -24px rgba(45, 212, 191, 0.55);
}


.status-tag[data-state="stopping"] {
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(194, 65, 12, 0.14)),
    rgba(194, 65, 12, 0.22);
  color: #fdba74;
  box-shadow: 0 18px 34px -24px rgba(249, 115, 22, 0.55);
}


.status-tag[data-state="failed"] {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(185, 28, 28, 0.14)),
    rgba(185, 28, 28, 0.24);
  color: #fecaca;
  box-shadow: 0 18px 38px -24px rgba(239, 68, 68, 0.6);
}


.status-tag[data-state="stopped"] {
  background:
    linear-gradient(135deg, rgba(148, 163, 184, 0.22), rgba(15, 23, 42, 0.2)),
    rgba(71, 85, 105, 0.24);
  color: rgba(226, 232, 240, 0.88);
  box-shadow: 0 18px 30px -24px rgba(148, 163, 184, 0.5);
}

/* Меню в карточке */
.card-menu {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  z-index: 30;
}

/* Кнопка с тремя точками */
.card-menu-trigger {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.card-menu-trigger:hover,
.card-menu.is-open .card-menu-trigger {
  color: var(--text);
  background: rgba(59, 130, 246, 0.25);
}

.card-menu-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* Дропдаун: по умолчанию скрыт */
.card-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: none; /* <-- ключевой момент */
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 20, 32, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 18px 34px -26px rgba(4, 7, 14, 0.8);
  min-width: 170px;
  z-index: 40;
}

/* Показываем только когда меню открыто */
.card-menu.is-open .card-menu-dropdown {
  display: grid;
}

/* Если JS ставит hidden — скрываем несмотря ни на что */
.card-menu-dropdown[hidden] {
  display: none !important;
}

/* Пункты внутри дропдауна — как было */
.card-menu-dropdown button {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.card-menu-dropdown button:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--text);
}

.card-menu-dropdown button[data-action="delete"] {
  color: #fca5a5;
}

.card-menu-dropdown button[data-action="delete"]:hover {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.2);
}



.card-description {
  margin: 0;
   color: var(--text-muted);
  font-size: 14px;
}

.card-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.meta-item {
  display: grid;
  gap: 4px;
}

.meta-item dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0;
}

.meta-item dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  word-break: break-word;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.card-actions button {
  border-radius: 12px;
  border: none;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  color: #fff;
  background: rgba(59, 130, 246, 0.18);
}

.card-actions button[data-action="start"] {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.card-actions button[data-action="stop"] {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.card-actions button[data-action="restart"] {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.card-actions button.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.card-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.card-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.card-feedback {
  min-height: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.card-feedback.error {
  color: var(--error);
}

.card-feedback.success {
  color: var(--success);
}

body.add-server-open {
  overflow: hidden;
}

.add-server-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 48px);
  background: rgba(6, 9, 16, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  z-index: 620;
}

.add-server-overlay[hidden] {
  display: none;
}

.add-server-dialog {
  width: min(520px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 36px);
}

.add-server-form {
  display: grid;
  gap: 18px;
}

.add-server-title {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.add-server-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.add-server-field {
  display: grid;
  gap: 8px;
}

.add-server-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.add-server-form input,
.add-server-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.add-server-form input:focus,
.add-server-form textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.add-server-form textarea {
  resize: vertical;
  min-height: 96px;
}

.add-server-error {
  min-height: 18px;
  font-size: 14px;
  color: var(--error);
}

.add-server-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

body.logs-overlay-open {

  overflow: hidden;

}



.logs-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 48px);
  background: rgba(6, 9, 16, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  z-index: 600;
}




.logs-overlay[hidden] {

  display: none;

}



.logs-dialog {

  width: min(1100px, 100%);

  max-height: min(92vh, 880px);

  background: rgba(15, 20, 32, 0.95);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 28px;

  box-shadow: 0 36px 90px -42px rgba(0, 0, 0, 0.85);

  display: grid;

  grid-template-rows: auto auto 1fr;

  overflow: hidden;

}



.logs-dialog-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  padding: clamp(20px, 4vw, 28px) clamp(24px, 5vw, 40px) 12px;

}



.logs-title {

  margin: 0;

  font-size: clamp(20px, 2.4vw, 26px);

  letter-spacing: -0.01em;

}



.logs-close {

  border: none;

  border-radius: 999px;

  padding: 8px 18px;

  font-weight: 600;

  font-size: 13px;

  cursor: pointer;

  color: var(--text);

  background: rgba(255, 255, 255, 0.1);

  transition: opacity 0.15s ease;

}



.logs-close:hover {

  opacity: 0.8;

}



.logs-dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 0 clamp(24px, 5vw, 40px) 16px;
  font-size: 13px;
  color: var(--text-muted);
}



.logs-dialog-meta[hidden] {
  display: none;
}




.logs-source-control {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.logs-source-control[hidden] {
  display: none;
}

.logs-source-control.is-loading .logs-source-select {
  opacity: 0.6;
}

.logs-source-label {
  font-weight: 500;
}

.logs-source-select {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.logs-source-select:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.logs-source-select:focus {
  outline: 2px solid rgba(148, 197, 255, 0.4);
  outline-offset: 1px;
}

.logs-source-select:disabled {
  cursor: default;
  opacity: 0.45;
}

@media (max-width: 640px) {
  .logs-source-control {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .logs-source-select {
    flex: 1 0 auto;
  }
}

.logs-dialog-body {

  padding: 0 clamp(24px, 5vw, 40px) clamp(24px, 5vw, 40px);

  overflow: auto;

  max-height: clamp(320px, 65vh, 720px);

}



.logs-output {

  margin: 0;

  height: 100%;

  max-height: none;

  overflow-x: auto;

  font-family: "JetBrains Mono", "Fira Code", monospace;

  font-size: 13px;

  line-height: 1.5;

  white-space: pre;

  min-width: 100%;

  color: rgba(230, 240, 255, 0.9);

}



.logs-output.error {

  color: var(--error);

}



@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .page-controls {
    width: 100%;
    justify-content: space-between;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --navbar-height: 120px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-controls {
    margin-left: 0;
    width: 100%;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .logs-dialog {
    border-radius: 18px;
    max-height: calc(100vh - 48px);
  }

  .logs-dialog-header {
    padding: 18px 18px 10px;
  }

  .logs-dialog-meta {
    padding: 0 18px 14px;
  }

  .logs-dialog-body {
    padding: 0 18px 18px;
  }

  .logs-close {
    padding: 8px 14px;
  }
}


body.auth-overlay-open {
  overflow: hidden;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 18, 27, 0.78);
  backdrop-filter: blur(6px);
  z-index: 2200;
}

.auth-overlay[hidden] {
  display: none;
}

.auth-dialog {
  width: 100%;
  max-width: 420px;
  background: #0f1520;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(8, 12, 20, 0.4);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form.is-busy {
  opacity: 0.8;
}

.auth-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #f5f7fa;
}

.auth-subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(245, 247, 250, 0.72);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 247, 250, 0.88);
}

.auth-field input {
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 34, 0.9);
  color: #f5f7fa;
  padding: 0 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(96, 168, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(96, 168, 255, 0.25);
}

.auth-error {
  font-size: 0.9rem;
  color: #ff7d7d;
  min-height: 1.2em;
}

.auth-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.auth-buttons .button {
  min-width: 96px;
}

.auth-form.is-busy .button {
  pointer-events: none;
}
