

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brand: #3046AB;
  --brand-l: #5068C4;
  --brand-bg: #EEF0F9;
  --bg: #FFFFFF;
  --bg2: #F7F7F6;
  --bg3: #EEEEEC;
  --t1: #1A1A1A;
  --t2: #666666;
  --t3: #A3A3A3;
  --brd: #EBEBEB;
  --ok: #10B981;
  --ok-bg: #ECFDF5;
  --ok-brd: #A7F3D0;
  --err: #EF4444;
  --err-bg: #FEF2F2;
  --err-brd: #FECACA;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Sora', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--t1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--t1); color: #fff; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #fff; border-left: 1px solid var(--bg3); }
::-webkit-scrollbar-thumb { background: var(--t1); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

a { color: inherit; text-decoration: none; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 52px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--brd);
}
.topbar-logo { display: flex; align-items: center; gap: 8px; }
.topbar-logo img { height: 52px; width: auto; display: block; }
.topbar-logo-txt {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--t1);
}
.topbar-right {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em;
}
.topbar-user { color: var(--t2); }
.topbar-link {
  color: var(--t3); cursor: pointer; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 500; transition: color 0.12s;
  border: none; background: none; font-family: var(--mono); font-size: 11px;
  text-decoration: none;
}
.topbar-link:hover { color: var(--t1); }

.main-content {
  flex: 1; display: flex; flex-direction: column;
  padding: 52px 0 0; 
}
.page-container {
  width: 100%; max-width: 90rem; margin: 0 auto;       
  padding: 32px 32px 48px;                              
}
.page-container--narrow { max-width: 520px; }
@media (max-width: 640px) {
  .page-container { padding: 24px 16px 40px; }          
}
.page-container--medium { max-width: 720px; }

.page-hdr { margin-bottom: 24px; }
.page-hdr-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.page-title {
  font-size: 36px; font-weight: 700; letter-spacing: -0.04em; line-height: 0.95;
}
.page-title .dot { color: var(--brand); }
.page-sub {
  font-family: var(--mono); font-size: 11px; color: var(--t3);
  letter-spacing: 0.04em; text-transform: uppercase; margin-top: 6px;
}
.page-hdr-bar {
  border-top: 1.5px solid var(--t1); margin-top: 14px; padding-top: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.page-hdr-bc {
  font-family: var(--mono); font-size: 11px; color: var(--t3);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.15s; text-decoration: none;
  line-height: 1; white-space: nowrap;
}
.btn svg, .btn i { width: 14px; height: 14px; flex-shrink: 0; }

.btn--primary {
  padding: 12px 24px; background: var(--t1); color: #fff; border-color: var(--t1);
}
.btn--primary:hover { background: #333; border-color: #333; }

.btn--accent {
  padding: 10px 20px; background: var(--brand); color: #fff; border-color: var(--brand);
}
.btn--accent:hover { background: var(--brand-l); border-color: var(--brand-l); }

.btn--outline {
  padding: 10px 20px; background: transparent; color: var(--t2); border-color: var(--brd);
}
.btn--outline:hover { border-color: var(--t3); color: var(--t1); }

.btn--danger {
  padding: 10px 20px; background: #fff; color: #B91C1C; border-color: var(--err-brd);
}
.btn--danger:hover { background: #B91C1C; border-color: #B91C1C; color: #fff; }

.btn--icon { padding: 10px; width: 44px; height: 44px; }

.btn--full { width: 100%; }

.card {
  background: var(--bg); border: 1px solid var(--brd);
  display: flex; flex-direction: column;
}
.card--shadow { box-shadow: 0 10px 24px rgba(26,26,26,0.06); }
.card--padded { padding: 24px; }

.devices-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0;
}
.dev-card { border: 1px solid var(--brd); display: flex; flex-direction: column; }

.dev-card-top {
  padding: 20px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--brd);
}
.dev-card-icon {
  width: 40px; height: 40px; background: var(--bg2);
  display: flex; align-items: center; justify-content: center; color: var(--t2); flex-shrink: 0;
}
.dev-card-info { flex: 1; min-width: 0; }
.dev-card-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.dev-card-id {
  font-family: var(--mono); font-size: 10px; color: var(--t3);
  margin-top: 1px; word-break: break-all;
}

.dev-card-meta { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dev-card-row { display: flex; justify-content: space-between; align-items: center; }
.dev-card-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--t3);
}
.dev-card-val { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--t1); }

.dev-card-actions { display: flex; gap: 0; border-top: 1px solid var(--brd); }
.dev-card-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  border: none; background: var(--t1); color: #fff; transition: background 0.12s;
  text-decoration: none;
}
.dev-card-btn:hover { background: #333; }
.dev-card-btn--secondary {
  background: transparent; color: var(--t3); border-left: 1px solid var(--brd);
  flex: 0; width: 48px;
}
.dev-card-btn--secondary:hover { color: var(--t1); background: var(--bg2); }

.status-badge {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; flex-shrink: 0; display: inline-block;
}
.status-badge--online { color: var(--ok); background: var(--ok-bg); }
.status-badge--offline { color: var(--err); background: var(--err-bg); }

.section-label {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--t3); font-weight: 600;
}
.section-label svg { width: 18px; height: 18px; }

.form-field { margin-bottom: 20px; }
.form-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--t3); font-weight: 600;
  margin-bottom: 6px; display: block;
}
.form-input,
form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
form select, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--brd);
  background: var(--bg); font-family: var(--sans); font-size: 14px;
  color: var(--t1); outline: none; transition: border-color 0.15s;
}
.form-input:focus,
form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
form select:focus, form textarea:focus {
  border-color: var(--brand);
}
.form-input::placeholder, form input::placeholder, form textarea::placeholder { color: var(--t3); }
.form-hint { font-family: var(--mono); font-size: 10px; color: var(--t3); margin-top: 6px; }

.auth-layout {
  flex: 1; display: flex; justify-content: center; align-items: center;
  min-height: calc(100vh - 52px); padding: 32px;
}
.auth-visual {
  width: 360px; height: calc(100vh - 52px - 280px); min-height: 400px;
  background: #000; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; position: relative; overflow: hidden;
}
.auth-visual::after {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.10);
  pointer-events: none; z-index: 1;
}
.auth-visual-grid {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 24px 24px;
}
.auth-visual-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.auth-visual-logo img { height: 140px; filter: brightness(0) invert(1); }
.auth-visual-txt { display: none; }
.auth-form-area {
  flex: 1; height: calc(100vh - 52px - 280px); min-height: 400px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px; max-width: 520px;
}
.auth-title { font-size: 32px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.auth-title .dot { color: var(--brand); }
.auth-sub {
  font-family: var(--mono); font-size: 11px; color: var(--t3);
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 32px;
}
.auth-divider { height: 1px; background: var(--brd); margin: 24px 0; }
.auth-footer { font-size: 13px; color: var(--t2); }
.auth-footer a { color: var(--brand); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { color: var(--t1); }

.connect-content {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px; min-height: calc(100vh - 52px);
}
.connect-card { width: 100%; max-width: 440px; }
.connect-stripe { height: 3px; background: var(--brand); margin-bottom: 32px; }
.connect-icon {
  width: 48px; height: 48px; border: 1px solid var(--brd);
  display: flex; align-items: center; justify-content: center;
  color: var(--t3); margin-bottom: 20px;
}
.connect-title { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 6px; }
.connect-title .dot { color: var(--brand); }
.connect-sub {
  font-family: var(--mono); font-size: 11px; color: var(--t3);
  letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 28px;
}
.connect-cancel {
  font-family: var(--mono); font-size: 11px; color: var(--t3);
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  border: none; background: none; text-align: center; display: block;
  width: 100%; padding: 8px; transition: color 0.12s; text-decoration: none;
}
.connect-cancel:hover { color: var(--t1); }

.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 13px; font-weight: 500; margin-bottom: 16px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert--success { background: var(--ok-bg); color: #15803D; border: 1px solid var(--ok-brd); }
.alert--error { background: var(--err-bg); color: #DC2626; border: 1px solid var(--err-brd); }

.errorlist {
  margin-top: 6px; color: var(--err); font-size: 12px; font-weight: 500;
  list-style: none; padding-left: 0;
}

.settings-section {
  padding: 24px 28px; border-bottom: 1px solid var(--brd);
}
.settings-section:last-child { border-bottom: none; }
.settings-section--muted { background: var(--bg2); }
.settings-section--danger { background: #FEF2F240; }

.settings-title {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--t1);
  margin-bottom: 16px;
}
.settings-title--danger { color: var(--err); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.info-box { padding: 14px 16px; background: var(--bg2); border: 1px solid var(--brd); }
.info-box-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 4px;
}
.info-box-val { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--t1); word-break: break-all; }

.members-list { border: 1px solid var(--brd); margin-bottom: 20px; }
.member-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--brd); transition: background 0.12s;
}
.member-row:last-child { border-bottom: none; }
.member-row:hover { background: var(--bg2); }
.member-avatar {
  width: 36px; height: 36px; background: var(--bg2); border: 1px solid var(--brd);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 13px; font-weight: 700; color: var(--t2);
}
.member-info { flex: 1; min-width: 0; }
.member-email { font-size: 13px; font-weight: 600; word-break: break-all; }
.member-role {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--t3); margin-top: 2px;
}
.member-tag {
  display: inline-block; padding: 2px 6px; font-family: var(--mono);
  font-size: 9px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; background: var(--brand-bg); color: var(--brand);
  margin-left: 6px;
}

.profile-header {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--brd);
}
.profile-avatar {
  width: 56px; height: 56px; background: var(--t1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.profile-email { font-size: 18px; font-weight: 700; word-break: break-all; }
.profile-sub {
  font-family: var(--mono); font-size: 11px; color: var(--t3);
  letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px;
}

.connection-shell { width: 100%; max-width: 900px; margin: 0 auto; }
.connection-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--brd);
}
.connection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 640px) {
  .connection-grid { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-card { height: auto; }
  .auth-form-area { padding: 32px 20px; }
  .topbar { padding: 0 16px; }
  .page-container { padding: 20px 16px 40px; }
}

.standalone-center {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px; background: var(--bg2);
}
.standalone-card {
  width: 100%; max-width: 380px; background: var(--bg);
  border: 1px solid var(--brd); overflow: hidden;
}
.standalone-header {
  background: var(--t1); padding: 32px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.standalone-header-grid {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 20px 20px;
}
.standalone-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.standalone-icon--error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); }
.standalone-icon--lock { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.standalone-icon svg { width: 28px; height: 28px; }
.standalone-title {
  color: #fff; font-size: 18px; font-weight: 700; position: relative; z-index: 1;
}
.standalone-filename {
  font-family: var(--mono); font-size: 11px; color: var(--t3);
  margin-top: 4px; position: relative; z-index: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.standalone-body { padding: 32px 24px; text-align: center; }
.standalone-footer {
  padding: 0 24px 24px; text-align: center;
  font-family: var(--mono); font-size: 10px; color: var(--t3);
  letter-spacing: 0.04em; text-transform: uppercase;
}

.status-terminal {
  background: #0d1117; color: #c9d1d9;
  font-family: var(--mono); padding: 16px;
  height: 200px; overflow-y: auto; font-size: 12px;
  margin-top: 16px; border: 1px solid #1f2937;
}

#remote-view {
  position: fixed; inset: 0; z-index: 9999; background: #000;
  display: none; flex-direction: column;
}
.remote-toolbar {
  position: absolute; bottom: 12px; right: 12px; z-index: 10000;
  opacity: 0.35; transition: opacity 0.25s;
}
.remote-toolbar:hover { opacity: 1; }
.remote-toolbar-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.7); border: 1px solid #555; color: #fff;
  padding: 8px 16px; font-family: var(--mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; backdrop-filter: blur(8px);
}
#remote-iframe { border: none; width: 100%; height: 100%; display: block; background: #fff; }

.text-mono { font-family: var(--mono); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.flex-row { display: flex; flex-direction: row; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-1 { flex: 1; min-width: 0; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-layout {
    display: grid !important;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
    flex: none !important;
    padding: 0 !important;
    align-items: stretch;
    justify-content: stretch;
    max-width: none;
}
.auth-layout--reverse { grid-template-columns: 1fr 1.05fr; }
.auth-layout--reverse .auth-visual { order: 2; }
.auth-layout--reverse .auth-form-area { order: 1; }

.auth-visual {
    position: relative; overflow: hidden; background: #0a0a0a; color: #fff;
    padding: 40px; display: flex; flex-direction: column;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 100vh !important;
    flex: none !important;
}
@media (min-width: 1024px) { .auth-visual { padding: 64px; } }
.auth-visual::after { display: none; }
.auth-visual-grid { display: none; }

.auth-visual-head {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
}
.auth-visual-body { position: relative; z-index: 10; margin-top: auto; }

.auth-logo-mark {
    font: 700 13px 'IBM Plex Mono', monospace;
    display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
}
.auth-logo-mark::before { content: ''; width: 10px; height: 10px; background: #fff; display: inline-block; }
.auth-visual-meta {
    font: 500 10px 'IBM Plex Mono', monospace;
    letter-spacing: .14em; text-transform: uppercase; color: #6b7280;
}

.auth-hero-label {
    font: 600 10px/1 'IBM Plex Mono', monospace;
    letter-spacing: .18em; text-transform: uppercase; color: #6b7280; margin-bottom: 20px;
}
.auth-hero-title {
    font-weight: 800; font-size: 88px; line-height: .92; letter-spacing: -.01em;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #fff;
}
.auth-hero-title .title-dot,
.auth-hero-title .dot { color: #3046ab; }
.auth-hero-copy {
    font: 500 12px/1.75 'IBM Plex Mono', monospace;
    color: #9ca3af; max-width: 28rem; margin-top: 24px;
}

.auth-hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1);
}
.auth-hero-stat-label {
    font: 600 9px 'IBM Plex Mono', monospace;
    letter-spacing: .14em; text-transform: uppercase; color: #6b7280;
}
.auth-hero-stat-val {
    font: 600 22px 'IBM Plex Mono', monospace; color: #fff; margin-top: 4px;
}
.auth-hero-stat-val small { font-size: 13px; color: #6b7280; font-weight: 500; }

.auth-hero-features { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.08); }
.auth-hero-features-item {
    display: grid; grid-template-columns: 36px 1fr; gap: 18px; padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.auth-hero-features-item:last-child { border-bottom: 0; }
.auth-hero-features-num { font: 500 11px 'IBM Plex Mono', monospace; color: #6b7280; padding-top: 4px; }
.auth-hero-features-title { font: 700 17px 'Plus Jakarta Sans', sans-serif; margin-bottom: 6px; color: #fff; }
.auth-hero-features-copy { font: 500 12px/1.7 'IBM Plex Mono', monospace; color: #9ca3af; }

.auth-hero-tail {
    font: 500 11px/1.75 'IBM Plex Mono', monospace;
    color: #6b7280; max-width: 420px; margin-top: 48px;
}
.auth-hero-tail a { color: #fff; text-decoration: underline; }

.auth-form-area {
    position: relative;       
    display: flex; align-items: center; justify-content: center;
    padding: 24px; background: #fff;
    flex: none !important;
    height: auto !important;
    min-height: 100vh !important;
    max-width: none !important;
    flex-direction: column !important;
}
@media (min-width: 640px) { .auth-form-area { padding: 40px; } }
@media (min-width: 1024px) { .auth-form-area { padding: 56px 64px; } }

.auth-logo-mark--corner {
    position: absolute;
    top: 32px;
    left: 32px;
    z-index: 5;
}
@media (min-width: 1024px) {
    .auth-logo-mark--corner { top: 56px; left: 64px; }
}
.auth-logo-mark--corner img { height: 28px; width: auto; display: block; }

.auth-form-inner { width: 100%; max-width: 460px; }

.auth-form-kicker {
    font: 500 11px 'IBM Plex Mono', monospace;
    letter-spacing: .18em; text-transform: uppercase; color: #9ca3af; margin-bottom: 14px;
}
.auth-form-title {
    font-weight: 700; font-size: 64px; line-height: .95; letter-spacing: -.01em;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #111; margin-bottom: 18px;
}
.auth-form-title .title-dot,
.auth-form-title .dot { color: #3046ab; }
.auth-form-hint {
    font: 500 13px 'IBM Plex Mono', monospace; color: #6b7280; margin-bottom: 36px;
}
.auth-form-hint a { color: #111; text-decoration: underline; text-underline-offset: 2px; }

.auth-sso-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.auth-sso-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px; border: 1px solid #e5e7eb; background: #fff;
    font: 500 11px 'IBM Plex Mono', monospace; color: #111;
    border-radius: 10px; cursor: pointer; transition: border-color .12s;
}
.auth-sso-btn:hover { border-color: #111; }
.auth-sso-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.auth-divider {
    display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #e5e7eb;
}
.auth-divider span {
    font: 500 9px 'IBM Plex Mono', monospace;
    letter-spacing: .14em; text-transform: uppercase; color: #9ca3af;
}

.auth-form-area .form-field { margin-bottom: 20px; }
.auth-form-area .form-field input[type="text"],
.auth-form-area .form-field input[type="email"],
.auth-form-area .form-field input[type="password"],
.auth-form-area .form-field select {
    width: 100%; padding: 14px 16px; border: 1px solid #e5e7eb; background: #fff;
    font: 500 13px 'IBM Plex Mono', monospace; color: #111;
    border-radius: 10px; outline: none; transition: border-color .12s, box-shadow .12s;
}
.auth-form-area .form-field input:focus,
.auth-form-area .form-field select:focus {
    border-color: #3046ab;
    box-shadow: 0 0 0 3px rgba(48,70,171,.12);
}
.auth-form-area .form-label {
    font: 500 10px 'IBM Plex Mono', monospace;
    letter-spacing: .16em; text-transform: uppercase; color: #9ca3af;
    margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline;
}
.auth-form-area .form-label a {
    font: 500 11px 'IBM Plex Mono', monospace;
    letter-spacing: normal; text-transform: none; color: #9ca3af;
}
.auth-form-area .form-label a:hover { color: #111; }

.auth-pw-wrap { position: relative; }
.auth-pw-wrap input { padding-right: 44px !important; }
.auth-pw-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; padding: 4px; cursor: pointer;
    color: #9ca3af; display: inline-flex;
}
.auth-pw-toggle:hover { color: #111; }
.auth-pw-toggle i { width: 16px; height: 16px; }

.auth-remember {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    font: 500 11px 'IBM Plex Mono', monospace; color: #111; margin-bottom: 20px;
    user-select: none;
}
.auth-checkbox {
    width: 14px; height: 14px; border: 1px solid #9ca3af; border-radius: 3px;
    display: inline-grid; place-items: center; flex-shrink: 0; transition: .12s;
}
.auth-checkbox.on { background: #111; border-color: #111; }
.auth-checkbox.on::after {
    content: ''; width: 6px; height: 3px;
    border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
    transform: translateY(-1px) rotate(-45deg); display: block;
}

.auth-form-area .btn--primary {
    width: 100%; background: #0b0b0b; color: #fff; border-color: #0b0b0b;
    font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: .18em;
    text-transform: uppercase; padding: 16px;
    border-radius: 10px;
    display: inline-flex; align-items: center; gap: 10px; justify-content: center;
    transition: background .15s, border-color .15s;
}
.auth-form-area .btn--primary:hover { background: #3046ab; border-color: #3046ab; }

.auth-footer-row {
    margin-top: 48px; padding-top: 24px; border-top: 1px solid #f3f4f6;
    display: flex; justify-content: space-between; align-items: center;
    font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: .06em; color: #9ca3af;
}
.auth-footer-row a { color: #9ca3af; }
.auth-footer-row a:hover { color: #111; }

@media (max-width: 1023px) {
    .auth-layout, .auth-layout--reverse { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-hero-title { font-size: 56px; }
    .auth-form-title { font-size: 44px; }
}
