/* 🐕 Woofson Design System — Golden Amber Palette for RemoteDog */
:root {
  --woofson-bg-void: #121214;
  --woofson-bg-panel: #18181b;
  --woofson-bg-header: #202024;
  --woofson-bg-active: #27272a;
  --woofson-bg-selected: rgba(245, 158, 11, 0.18);
  --woofson-accent: #f59e0b;
  --woofson-accent-hover: #fbbf24;
  --woofson-accent-dark: #d97706;
  --woofson-border: #3f3f46;
  --woofson-border-focus: #f59e0b;
  --woofson-text-main: #f4f4f5;
  --woofson-text-muted: #a1a1aa;
  --woofson-text-dim: #71717a;
  --woofson-success: #10b981;
  --woofson-danger: #ef4444;
  --woofson-info: #38bdf8;
  --woofson-archive: #f472b6;

  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-panel: 0 8px 30px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.15s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--woofson-bg-void);
  color: var(--woofson-text-main);
  font-family: var(--font-sans);
  font-size: 13px;
}

/* App Root Structure */
.app-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Top Application Header (Matches CommanderDog) */
.app-header {
  background-color: var(--woofson-bg-header, #202024);
  border-bottom: 1px solid var(--woofson-border, #3f3f46);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
  z-index: 100;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--woofson-accent, #f59e0b);
  letter-spacing: 0.5px;
  margin-right: auto;
}

.app-logo-text {
  color: var(--woofson-text-main, #f4f4f5);
}

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

.header-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.desktop-only {
  display: flex;
}

.header-sep {
  width: 1px;
  height: 18px;
  background: var(--woofson-border, #3f3f46);
  margin: 0 4px;
}

/* Layout Switcher Button Group (Matches CommanderDog) */
.layout-btn-group {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Buttons System (Matches CommanderDog) */
.btn {
  background-color: var(--woofson-bg-panel, #18181b);
  border: 1px solid var(--woofson-border, #3f3f46);
  color: var(--woofson-text-main, #f4f4f5);
  padding: 5px 10px;
  border-radius: var(--radius-md, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
  user-select: none;
  line-height: normal;
  box-sizing: border-box;
}

.btn:hover {
  background-color: var(--woofson-bg-active, #27272a);
  border-color: var(--woofson-accent, #f59e0b);
}

.btn.active {
  background-color: rgba(245, 158, 11, 0.12);
  border-color: var(--woofson-accent, #f59e0b);
  color: var(--woofson-accent-hover, #fbbf24);
}

.btn.btn-accent {
  background-color: var(--woofson-accent, #f59e0b);
  color: #121214;
  border-color: var(--woofson-accent, #f59e0b);
  font-weight: 700;
}

.btn.btn-accent:hover {
  background-color: var(--woofson-accent-hover, #fbbf24);
  border-color: var(--woofson-accent-hover, #fbbf24);
}

.btn.btn-danger {
  background-color: var(--woofson-danger, #ef4444);
  color: #fff;
  border-color: var(--woofson-danger, #ef4444);
}

.btn-secondary {
  background: var(--woofson-bg-active, #27272a);
}

.btn-sm {
  padding: 3px 8px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 6px);
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-icon svg,
.btn-icon img {
  width: 15px;
  height: 15px;
  display: block;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--woofson-text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover {
  color: var(--woofson-danger);
}

.icon {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 36px;
  height: 36px;
}

/* User Profile & Dropdown (Matches CommanderDog) */
.profile-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--woofson-bg-header, #202024);
  border: 1px solid var(--woofson-border, #3f3f46);
  border-radius: var(--radius-md, 6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 1200;
  display: none;
  min-width: 240px;
  overflow: hidden;
}

.profile-dropdown-menu.active {
  display: block !important;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
}

.profile-avatar-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--woofson-accent, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--woofson-accent, #f59e0b);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 2px solid var(--woofson-accent, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--woofson-accent, #f59e0b);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar-clickable {
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-avatar-clickable:hover {
  transform: scale(1.06);
  border-color: var(--woofson-accent-hover, #fbbf24);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.profile-dropdown-header {
  padding: 12px;
  background: var(--woofson-bg-void, #121214);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--woofson-border, #3f3f46);
}

.user-role-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--woofson-accent, #f59e0b);
  color: #121214;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.profile-dropdown-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--woofson-border, #3f3f46);
}

.profile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--woofson-bg-panel, #18181b);
  border: 1px solid var(--woofson-border, #3f3f46);
  border-radius: var(--radius-md, 6px);
  color: var(--woofson-text-main, #f4f4f5);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-action-btn:hover {
  background: var(--woofson-bg-active, #27272a);
  border-color: var(--woofson-accent, #f59e0b);
}

.profile-action-btn.btn-danger-action:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--woofson-danger, #ef4444);
  color: #f87171;
}

/* Modals System (Matches CommanderDog) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-box {
  background-color: var(--woofson-bg-panel, #18181b);
  border: 1px solid var(--woofson-border, #3f3f46);
  border-radius: 8px;
  box-shadow: var(--shadow-panel, 0 8px 30px rgba(0, 0, 0, 0.6));
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  box-sizing: border-box;
}

.modal-header {
  background-color: var(--woofson-bg-header, #202024);
  border-bottom: 1px solid var(--woofson-border, #3f3f46);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
}

.modal-footer {
  padding: 10px 16px;
  background-color: var(--woofson-bg-header, #202024);
  border-top: 1px solid var(--woofson-border, #3f3f46);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Viewport Grid (1 to 4 Panes) */
.viewport-grid {
  flex: 1;
  display: grid;
  padding: 6px;
  gap: 6px;
  background: var(--woofson-bg-void);
  overflow: hidden;
}

.viewport-grid.layout-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.viewport-grid.layout-2,
.viewport-grid.layout-2v {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.viewport-grid.layout-2h {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}

.viewport-grid.layout-3 {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
}

.viewport-grid.layout-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* Individual Remote Pane */
.remote-pane {
  display: flex;
  flex-direction: column;
  background: var(--woofson-bg-panel);
  border: 1px solid var(--woofson-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-fast);
}

.remote-pane.active {
  border-color: var(--woofson-border-focus);
  box-shadow: 0 0 0 1px var(--woofson-accent);
}

.pane-header {
  height: 32px;
  background: var(--woofson-bg-header);
  border-bottom: 1px solid var(--woofson-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.pane-header-left, .pane-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pane-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--woofson-accent);
}

.pane-conn-name {
  font-weight: 600;
  font-size: 12px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pane-protocol-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--woofson-bg-active);
  color: var(--woofson-info);
  border: 1px solid var(--woofson-border);
  text-transform: uppercase;
}

.pane-btn {
  background: transparent;
  border: none;
  color: var(--woofson-text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 3px;
}

.pane-btn:hover {
  color: var(--woofson-text-main);
  background: var(--woofson-bg-active);
}

.pane-fps-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--woofson-text-dim);
}

.pane-body {
  flex: 1;
  position: relative;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pane-canvas {
  image-rendering: pixelated;
  max-width: 100%;
  max-height: 100%;
}

.pane-terminal {
  width: 100%;
  height: 100%;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #f4f4f5;
  background: #0d0d0f;
  overflow-y: auto;
  outline: none;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: text;
}

.pane-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--woofson-text-muted);
  text-align: center;
}

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.empty-brand-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.65;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.25));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.empty-brand-img:hover {
  opacity: 0.95;
  transform: scale(1.05);
}

/* Drag & Drop Overlays */
.pane-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 20, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border: 2px dashed var(--woofson-accent);
}

.pane-drop-overlay.active {
  display: flex;
}

.drop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--woofson-accent);
  font-weight: 600;
}

/* Side Drawers (Clipboard & Transfers) */
.side-drawer {
  position: fixed;
  top: 44px;
  right: 0;
  bottom: 24px;
  width: 360px;
  background: var(--woofson-bg-panel);
  border-left: 1px solid var(--woofson-border);
  box-shadow: var(--shadow-panel);
  z-index: 90;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-drawer.wide {
  width: 440px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  height: 40px;
  background: var(--woofson-bg-header);
  border-bottom: 1px solid var(--woofson-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--woofson-accent);
}

.drawer-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-area {
  width: 100%;
  background: var(--woofson-bg-void);
  border: 1px solid var(--woofson-border);
  border-radius: var(--radius-sm);
  color: var(--woofson-text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px;
  resize: vertical;
  user-select: text;
  outline: none;
}

.input-area:focus {
  border-color: var(--woofson-accent);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropbox-zone {
  border: 2px dashed var(--woofson-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  background: var(--woofson-bg-void);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.dropbox-zone:hover {
  border-color: var(--woofson-accent);
  background: var(--woofson-bg-active);
}

.transfers-list {
  background: var(--woofson-bg-void);
  border: 1px solid var(--woofson-border);
  border-radius: var(--radius-sm);
  max-height: 180px;
  overflow-y: auto;
}

.transfer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--woofson-border);
}

.transfer-item:last-child {
  border-bottom: none;
}

.transfer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 240px;
}

.transfer-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transfer-meta {
  font-size: 10px;
  color: var(--woofson-text-muted);
}

/* SFTP Tree View */
.sftp-tree-list {
  background: var(--woofson-bg-void);
  border: 1px solid var(--woofson-border);
  border-radius: var(--radius-sm);
  max-height: 220px;
  overflow-y: auto;
}

.sftp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(63, 63, 70, 0.4);
}

.sftp-item:hover {
  background: var(--woofson-bg-active);
}

.sftp-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bottom Status Bar */
.bottom-status-bar {
  height: 24px;
  background: var(--woofson-bg-header);
  border-top: 1px solid var(--woofson-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  color: var(--woofson-text-muted);
  z-index: 80;
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online { background: var(--woofson-success); }
.status-dot.busy { background: var(--woofson-accent); }
.status-dot.offline { background: var(--woofson-danger); }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: var(--woofson-bg-panel);
  border: 1px solid var(--woofson-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScale 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.modal-lg {
  max-width: 840px;
}

@keyframes modalScale {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  height: 44px;
  background: var(--woofson-bg-header);
  border-bottom: 1px solid var(--woofson-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--woofson-text-main);
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--woofson-text-muted);
}

.form-row {
  display: flex;
  gap: 8px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.form-input {
  background: var(--woofson-bg-void);
  border: 1px solid var(--woofson-border);
  border-radius: var(--radius-sm);
  color: var(--woofson-text-main);
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
  user-select: text;
}

.form-input:focus {
  border-color: var(--woofson-accent);
}

/* Data Tables */
.table-responsive {
  max-height: 480px;
  overflow-y: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.data-table th {
  background: var(--woofson-bg-header);
  padding: 8px 10px;
  font-weight: 600;
  color: var(--woofson-text-muted);
  border-bottom: 1px solid var(--woofson-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(63, 63, 70, 0.4);
}

.data-table tbody tr:hover {
  background: var(--woofson-bg-active);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--woofson-bg-panel);
  border: 1px solid var(--woofson-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-panel);
  min-width: 140px;
  z-index: 200;
}

.dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--woofson-bg-active);
  color: var(--woofson-accent);
}

.dropdown-divider {
  height: 1px;
  background: var(--woofson-border);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 32px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
}

.toast {
  background: var(--woofson-bg-panel);
  border: 1px solid var(--woofson-accent);
  color: var(--woofson-text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-panel);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  animation: toastFade 0.2s ease;
}

@keyframes toastFade {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Utilities */
.text-muted { color: var(--woofson-text-muted); }
.text-danger { color: var(--woofson-danger); }
.text-success { color: var(--woofson-success); }
.text-sm { font-size: 11px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.p-3 { padding: 12px; }

/* ==========================================================================
   LOGIN SCREEN & AMBER GRADIENT AUTHENTICATION MODAL (COMMANDERDOG STYLE)
   ========================================================================== */
#login-modal.login-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #121214;
  background-image: 
    radial-gradient(ellipse 70% 55% at 15% 15%, rgba(245, 158, 11, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 65% 50% at 85% 85%, rgba(217, 119, 6, 0.13) 0%, transparent 65%),
    radial-gradient(circle 500px at 50% 50%, rgba(120, 53, 15, 0.08) 0%, transparent 100%),
    linear-gradient(140deg, #0e0e11 0%, #15151a 45%, #181512 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

#login-modal.login-screen-overlay.active {
  display: flex !important;
}

/* Corner Branding */
.login-corner-brand {
  position: absolute;
  top: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.login-corner-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.35));
}

.login-corner-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--woofson-text-main, #f4f4f5);
}

/* Lower-Right Corner Version */
.login-corner-version {
  position: absolute;
  bottom: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  user-select: none;
  z-index: 10;
}

.login-version-badge {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: var(--woofson-accent, #f59e0b);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.4px;
}

/* Login Card */
.login-card {
  width: 100%;
  max-width: 380px;
  background: #18181c;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 32px rgba(245, 158, 11, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 20;
  animation: loginCardPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
  line-height: normal;
  box-sizing: border-box;
}

@keyframes loginCardPop {
  0% { transform: scale(0.94) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.login-card-header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(63, 63, 70, 0.4);
  background: linear-gradient(180deg, rgba(32, 32, 36, 0.9) 0%, rgba(24, 24, 28, 0.9) 100%);
  height: 84px;
  box-sizing: border-box;
}

.login-brand-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  box-sizing: border-box;
}

.login-brand-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.login-header-text {
  flex: 1;
  min-width: 0;
}

.login-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--woofson-text-main, #f4f4f5);
  line-height: 1.3;
  margin: 0;
}

.login-subtitle {
  font-size: 11.5px;
  color: var(--woofson-text-muted, #a1a1aa);
  margin-top: 2px;
  line-height: 1.3;
}

.login-card-body {
  padding: 20px 24px 12px;
  box-sizing: border-box;
}

.login-form-group {
  margin-bottom: 16px;
}

.login-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--woofson-text-main, #f4f4f5);
  margin-bottom: 7px;
  user-select: none;
  line-height: 1;
  height: 14px;
}

.login-label-icon {
  width: 13px;
  height: 13px;
  color: var(--woofson-accent, #f59e0b);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.login-input-wrapper {
  position: relative;
  width: 100%;
}

.login-input {
  width: 100%;
  height: 36px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: normal;
  font-family: var(--font-sans);
  color: var(--woofson-text-main, #f4f4f5);
  background-color: #111114;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.15s ease;
  user-select: text;
}

.login-input::placeholder {
  color: #71717a;
  font-size: 12px;
}

.login-input:hover {
  border-color: #52525b;
  background-color: #131317;
}

.login-input:focus {
  border-color: var(--woofson-accent, #f59e0b);
  background-color: #15151a;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.login-error-msg {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 11.5px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.login-card-footer {
  padding: 12px 24px 22px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}

.login-submit-btn {
  padding: 7px 18px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background-color: var(--woofson-accent, #f59e0b);
  color: #121214;
  border: 1px solid var(--woofson-accent, #f59e0b);
  transition: all 0.15s ease;
  height: 31px;
  box-sizing: border-box;
}

.login-submit-btn span {
  line-height: 1;
}

.login-submit-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.login-submit-btn:hover {
  background-color: var(--woofson-accent-hover, #fbbf24);
  border-color: var(--woofson-accent-hover, #fbbf24);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.login-submit-btn:active {
  transform: translateY(0);
}

