@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    --nav-bg: #162131;
    --nav-dark: #101a27;
    --nav-tab: #1f2a3a;
    --nav-active: #1e86f7;
    --accounts-panel-width: 224px;
    --panel-bg: #0e141c;
    --panel-border: #1f2b3a;
    --panel-text: #dbe2ea;
    --panel-muted: #9aa7b4;
    --accent-orange: #ff8c1a;
    --accent-green: #25c06d;
    --accent-cyan: #00c8ff;
    --workspace: #f5f6f8;
    --grid-border: #d0d0d0;
    --btn-border: #c9c9c9;
    --btn-bg: #f5f5f5;
    --btn-text: #1b1b1b;
    --purple: #742bbd;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: var(--workspace);
    color: #1b1b1b;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: linear-gradient(180deg, #1b2636, #141e2c);
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid #0c141f;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.topbar-tabs {
    display: flex;
    gap: 8px;
    margin-left: 18px;
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 18px;
    flex: 0 0 auto;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.user-label {
    color: #dfe7ef;
    font-size: 0.85rem;
}

.top-tab {
    padding: 6px 20px;
    border-radius: 2px;
    background: #263249;
    border: 1px solid #314258;
    color: #f0f2f5;
    text-decoration: none;
    font-size: 0.9rem;
}

.top-tab-accounts {
    width: var(--accounts-panel-width);
    text-align: center;
    padding: 6px 28px;
}

.top-tab.active {
    background: var(--nav-active);
    color: #ffffff;
    font-weight: 600;
}

.workspace {
    display: flex;
    flex: 1;
    min-height: 0;
}

.workspace-main {
    flex: 1;
    background: #ffffff;
    border-left: 1px solid #d6d6d6;
    padding: 14px 16px;
    overflow: auto;
}

.workspace-main.full {
    border-left: none;
}

.accounts-panel {
    width: var(--accounts-panel-width);
    background: linear-gradient(180deg, #0f141b, #0b0f14);
    color: var(--panel-text);
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1a2634;
    height: calc(100vh - 50px);
}

.panel-header {
    padding: 10px 12px;
    background: #0f1722;
    border-bottom: 1px solid #1b2735;
}

.panel-title {
    font-weight: 600;
    color: #e5ecf4;
}

.panel-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
}

.tab-button {
    flex: 1;
    padding: 6px 0;
    background: #1d2734;
    border: 1px solid #8da1b7;
    color: #f2f6fb;
    cursor: pointer;
}

.tab-button.active {
    background: var(--nav-active);
    border-color: #8fb8ff;
}

.panel-search {
    margin: 0 12px 10px;
    display: flex;
    align-items: center;
    background: #1a2635;
    border: 1px solid #273243;
    padding: 6px 8px;
    color: var(--panel-muted);
}

.panel-search input {
    border: none;
    background: transparent;
    color: var(--panel-text);
    flex: 1;
    outline: none;
    font-size: 0.85rem;
}

.search-icon {
    margin-right: 6px;
}

.panel-list {
    flex: 1;
    padding: 6px 12px;
    overflow: auto;
    background: #000000;
    border-top: 1px solid #0d141f;
    border-bottom: 1px solid #0d141f;
}

.server-title {
    margin-top: 8px;
    font-weight: 600;
}

.server-title.orange { color: var(--accent-orange); }
.server-title.green { color: var(--accent-green); }
.server-title.cyan { color: var(--accent-cyan); }

.account-id {
    font-size: 0.85rem;
    margin: 2px 0 2px 10px;
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 3px;
}

.account-id:hover {
    background: rgba(255, 255, 255, 0.08);
}

.account-id.active {
    background: rgba(31, 125, 230, 0.35);
    color: #ffffff;
}

.context-menu {
    position: fixed;
    z-index: 2000;
    background: #101621;
    border: 1px solid #2a3644;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    padding: 6px;
    min-width: 120px;
    border-radius: 4px;
}

.context-menu button {
    width: 100%;
    background: transparent;
    color: #e6edf7;
    border: none;
    text-align: left;
    padding: 6px 10px;
    cursor: pointer;
}

.context-menu button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.context-menu button.danger {
    color: #ff8b8b;
}

.panel-footer {
    padding: 12px;
    background: #0b0f14;
    border-top: 1px solid #1a2634;
    position: sticky;
    bottom: 0;
}

.panel-add {
    width: 100%;
    background: #16202b;
    border: 1px solid #cfd6df;
    color: #f4f7fb;
    padding: 8px 0;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
}

.accounts-surface {
    position: relative;
    height: 100%;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #bfbfbf;
    padding: 6px 10px;
    background: #f7f7f7;
}

.analysis-tabs {
    display: inline-flex;
    gap: 4px;
}

.analysis-tab {
    border: 1px solid #bfbfbf;
    background: #f2f2f2;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.analysis-tab.active {
    background: #ffffff;
    border-bottom-color: #ffffff;
}

.analyze-btn {
    margin-left: auto;
}

.analysis-account {
    margin-left: 12px;
    font-size: 0.85rem;
    color: #333;
}

.analysis-latency {
    margin: 8px 0 10px 0;
    font-size: 0.85rem;
    color: #1f7d25;
}

.analysis-error {
    margin-bottom: 8px;
}

.analysis-empty {
    padding: 20px;
    color: #666;
}

.analysis-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.analysis-card {
    border: 1px solid #e0e0e0;
    padding: 8px;
    font-size: 0.82rem;
    min-height: 80px;
}

.analysis-card .card-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.analysis-card .card-row {
    line-height: 1.45;
}

.card-blue { background: #eff4ff; }
.card-green { background: #eef9f0; }
.card-yellow { background: #fff7e6; }
.card-red { background: #ffecec; }

.analysis-lower {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.analysis-bottom {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
    margin-top: 12px;
}

.section-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.analysis-top-symbols,
.analysis-recent,
.analysis-periods,
.analysis-bestworst {
    border: 1px solid #bfbfbf;
    padding: 8px;
    background: #ffffff;
}

.analysis-bestworst .bestworst-row {
    margin-top: 6px;
    font-size: 0.85rem;
}

.analysis-table th {
    background: #f2f2f2;
}

.pie-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pie-chart {
    width: 180px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid #bfbfbf;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 10px;
    height: 10px;
    display: inline-block;
}

.analysis-details {
    border: 1px solid #bfbfbf;
    padding: 10px;
    background: #ffffff;
    margin-top: 8px;
}

.analysis-details pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: Consolas, monospace;
    font-size: 0.8rem;
    max-height: 480px;
    overflow: auto;
}

.accounts-blank {
    height: calc(100vh - 70px);
    background: #ffffff;
}

.copy-surface {
    background: #ffffff;
}

.copy-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #000000;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.copy-title {
    font-weight: 600;
    margin-right: 10px;
}

.btn-purple {
    background: var(--purple);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 600;
}

.btn-ghost-light {
    background: #ffffff;
    border: 1px solid #000000;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-group {
    display: inline-flex;
    border: 2px solid #4a4f55;
    border-radius: 4px;
    overflow: hidden;
}

.btn-icon {
    width: 34px;
    height: 24px;
    border: none;
    cursor: pointer;
    color: #000;
}

.btn-icon.green { background: #41b54a; }
.btn-icon.yellow { background: #f2d13d; }
.btn-icon.red { background: #e54646; color: #fff; }
.btn-icon.dark { background: #2f3944; color: #fff; }

.grid-wrap {
    border: 1px solid #000;
}

.grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.grid th {
    background: #f2f2f2;
    border-bottom: 1px solid #bfbfbf;
    padding: 6px 8px;
    text-align: left;
}

.grid td {
    border-bottom: 1px solid #d8d8d8;
    padding: 6px 8px;
}

.tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.75rem;
    color: #fff;
    margin-right: 6px;
}

.tag.teal { background: #2e9fa8; }
.tag.orange { background: #e6872a; }

.bold { font-weight: 600; }
.status-text { color: #6d6d6d; }

.simple-surface {
    background: #ffffff;
    padding: 18px;
}

.simple-title {
    font-size: 1rem;
    margin-bottom: 12px;
}

.simple-subtitle {
    font-size: 0.85rem;
    color: #666;
}

.simple-buttons {
    display: grid;
    gap: 10px;
    width: 200px;
}

.btn-plain {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    padding: 6px 12px;
    cursor: pointer;
    color: var(--btn-text);
}

.btn-plain.wide {
    width: 200px;
}

.import-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.import-platform {
    font-weight: 600;
}

.import-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.import-grid th,
.import-grid td {
    font-size: 0.85rem;
}

.import-check {
    width: 34px;
    text-align: center;
}

.import-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
}

.import-save {
    color: #1f7a3b;
    font-weight: 600;
}

.app-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.app-modal {
    background: #f5f5f5;
    border: 1px solid #9f9f9f;
    width: 380px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: block;
    position: relative;
    max-height: 90vh;
    overflow: auto;
}

.app-modal-wide { width: 520px; }
.app-modal-large { width: 560px; }

.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f0f0f0;
    border-bottom: 1px solid #cfcfcf;
}

.app-modal-title { font-weight: 600; }

.app-modal-close {
    border: none;
    background: transparent;
    cursor: pointer;
}

.app-modal-body { padding: 10px; }

.app-modal-note {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-row.align-start {
    align-items: flex-start;
}

.form-row-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.inline-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.inline-label { margin-left: 8px; }

.input {
    padding: 4px 6px;
    border: 1px solid #bdbdbd;
    background: #fff;
}

.input.small { width: 200px; }
.input.tiny { width: 60px; }

.check {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    justify-self: start;
}

.check.inline { margin-left: 10px; }

.form-hint {
    font-size: 0.75rem;
    color: #5f6b77;
    margin-top: 4px;
}

.server-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.server-actions {
    display: flex;
    justify-content: flex-end;
}

.server-actions .btn-plain {
    min-width: 120px;
}

.test-status {
    font-size: 0.8rem;
    color: #4b4b4b;
}

.test-status.ok {
    color: #1f7a3b;
    font-weight: 600;
}

.test-status.error {
    color: #b24a4a;
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    border: 1px solid #cfcfcf;
    background: #ffffff;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.summary-item span {
    color: #4b4b4b;
    margin-right: 6px;
}

.app-modal-footer {
    padding: 8px 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #cfcfcf;
}

.account-footer {
    justify-content: space-between;
    align-items: center;
}

.account-footer-actions {
    display: flex;
    gap: 8px;
}

.grid-box {
    border: 1px solid #bfbfbf;
    margin-top: 6px;
}

.grid-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #f2f2f2;
    border-bottom: 1px solid #bfbfbf;
    padding: 6px;
    font-size: 0.85rem;
}

.grid-body {
    height: 160px;
    background: #ffffff;
}

.results {
    font-size: 0.8rem;
    margin-top: 8px;
}

.login-card {
    width: 360px;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.login-title { font-weight: 600; margin-bottom: 6px; }
.login-subtitle { font-size: 0.85rem; color: #666; margin-bottom: 10px; }

.error {
    background: #ffe5e5;
    border: 1px solid #e19999;
    padding: 6px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .workspace {
        flex-direction: column;
    }

    .accounts-panel {
        width: 100%;
    }
}

.accounts-toolbar {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}

.grow {
    flex: 1;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #1b2a3c 0%, #0f1722 70%);
}

.login-card {
    width: 420px;
    background: #ffffff;
    border: 1px solid #cfd6df;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.login-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.login-mark {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(145deg, #1e86f7, #0f5fb8);
}

.login-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.login-subtitle {
    font-size: 0.85rem;
    color: #66717e;
}

.btn-primary {
    width: 100%;
    background: #1e86f7;
    border: 1px solid #1a73d9;
    color: #fff;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 4px;
}

.login-footnote {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #77818d;
    text-align: center;
}

.app-modal-section-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.btn-icon {
    min-width: 46px;
    padding: 0 8px;
    font-size: 0.8rem;
}


.copy-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #000000;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-right {
    display: flex;
    align-items: center;
}

.session-count {
    font-size: 0.85rem;
    color: #4b4b4b;
}

.copy-grid th,
.copy-grid td {
    font-size: 0.8rem;
}

.row-selected {
    background: #d6e6ff;
}

.status-stopped {
    color: #c0392b;
    font-weight: 600;
}

.status-running {
    color: #1f7a3b;
    font-weight: 600;
}

.status-paused {
    color: #8a6d3b;
    font-weight: 600;
}

.status-connecting {
    color: #2c6ebd;
    font-weight: 600;
}

.app-modal-copy {
    width: 600px;
}

.copy-form {
    font-size: 0.85rem;
}

.copy-form-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.copy-section-label {
    margin-top: 8px;
    font-weight: 600;
}

.copy-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.copy-row.inline {
    grid-template-columns: 140px 100px;
}

.copy-platform-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.platform-label {
    width: 40px;
    text-align: right;
}

.platform-or {
    width: 24px;
    text-align: center;
}

.copy-checks {
    display: grid;
    gap: 4px;
    margin: 6px 0 6px 0;
}

.copy-metrics-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-refresh {
    width: 26px;
    height: 26px;
    border: 1px solid #78a8d6;
    background: #e1f0ff;
    color: #23507d;
    cursor: pointer;
}

.copy-footer {
    justify-content: space-between;
    align-items: center;
}

.copy-footer-actions {
    display: flex;
    gap: 8px;
}

.btn-plain.bold {
    font-weight: 600;
}

.input.wide { width: 100%; }
.input.medium { width: 210px; }
.input.platform { width: 180px; }

.app-modal-map {
    width: 760px;
    max-height: 80vh;
}

.map-info {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.map-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.map-busy {
    font-size: 0.8rem;
    color: #4b4b4b;
    margin-bottom: 6px;
}

.app-modal-map .grid-wrap {
    max-height: 52vh;
    overflow: auto;
}

.map-grid th,
.map-grid td {
    padding: 4px 6px;
}

.map-grid td {
    line-height: 1.15;
}

.map-grid td input {
    width: 100%;
    height: 24px;
    padding: 3px 6px;
}

.map-delete {
    width: 40px;
    text-align: center;
}

.app-modal-preferred { width: 590px; }

.pref-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.pref-info {
    font-size: 0.85rem;
    color: #5d5d5d;
    margin-bottom: 8px;
}

.pref-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pref-body {
    display: flex;
    gap: 8px;
}

.pref-table-wrap {
    width: 100%;
    max-height: 330px;
    overflow-y: auto;
}

.pref-grid {
    width: 100%;
}

.pref-move {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 60px;
}

.pref-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.app-modal-log { width: 760px; }

.app-modal-analysis { width: 760px; max-width: 90vw; }

.analysis-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.analysis-grid td {
    padding: 6px 8px;
}

.analysis-grid th {
    text-align: left;
    padding: 6px 8px;
    background: #f1f3f6;
}

.analysis-loading {
    font-size: 0.9rem;
    color: #666;
}

.analysis-section {
    margin-top: 12px;
}

.analysis-subtitle {
    font-weight: 600;
    margin: 10px 0 6px 0;
    color: #1f2937;
}

.log-path {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
}

.log-list {
    height: 280px;
    border: 1px solid #bfbfbf;
    background: #ffffff;
    padding: 8px;
    overflow: auto;
    font-family: Consolas, monospace;
    font-size: 0.8rem;
}

.app-modal-servers { width: 760px; }

.server-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.server-source {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.server-grid th,
.server-grid td {
    font-size: 0.85rem;
}

.server-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.server-status {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #666;
}

.app-modal-server-edit { width: 520px; }

.app-modal-security { width: 420px; }

.security-info {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.security-group {
    border: 1px solid #cfcfcf;
    padding: 10px;
    background: #ffffff;
}

.security-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.app-modal-broker { width: 640px; }

.broker-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.broker-status {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
}

.app-modal-filter { width: 320px; }

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 360px;
    overflow: auto;
}

.app-modal-selection { width: 900px; }

.selection-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.selection-footer {
    justify-content: space-between;
}

.selection-grid th,
.selection-grid td {
    font-size: 0.85rem;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        radial-gradient(900px 460px at 12% 0%, rgba(37, 124, 228, 0.16), transparent 60%),
        radial-gradient(700px 400px at 88% 0%, rgba(35, 183, 156, 0.12), transparent 56%),
        linear-gradient(155deg, #0b1322 0%, #101b2d 55%, #111d2f 100%);
}

.auth-shell {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    border: 1px solid rgba(118, 153, 197, 0.35);
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(160deg, rgba(12, 26, 45, 0.94), rgba(12, 25, 42, 0.9));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.35);
}

.register-card {
    max-width: 500px;
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.auth-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(145deg, #2498ff, #1969d8);
    box-shadow: inset 0 0 0 1px rgba(198, 231, 255, 0.45);
}

.auth-title {
    color: #f0f7ff;
    font-weight: 700;
    font-size: 1.12rem;
}

.auth-subtitle {
    color: #a8bdd4;
    font-size: 0.87rem;
}

.field {
    margin-bottom: 10px;
}

.field label {
    display: block;
    margin-bottom: 5px;
    color: #d7e8fb;
    font-size: 0.86rem;
    font-weight: 600;
}

.field .input {
    width: 100%;
    height: 38px;
    border: 1px solid #355173;
    border-radius: 9px;
    background: #0b1523;
    color: #edf6ff;
    padding: 0 11px;
    font-size: 0.9rem;
}

.field .input:focus {
    outline: none;
    border-color: #4ea4ff;
    box-shadow: 0 0 0 3px rgba(78, 164, 255, 0.2);
}

.password-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.toggle-pass {
    height: 38px;
    min-width: 66px;
    border-radius: 9px;
    border: 1px solid #355173;
    background: #111f33;
    color: #d9e9fb;
    cursor: pointer;
}

.toggle-pass:hover {
    background: #15263d;
}

.validation-message {
    display: block;
    color: #ffb4b4;
    font-size: 0.8rem;
    margin-top: 3px;
}

.password-rules {
    margin: 0 0 12px 0;
    padding-left: 18px;
    color: #a9c0d8;
    font-size: 0.82rem;
    line-height: 1.55;
}

.auth-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 8px;
}

.auth-actions .btn-main,
.auth-actions .btn-ghost {
    height: 38px;
    border-radius: 9px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.auth-actions .btn-main {
    background: linear-gradient(145deg, #2195ff, #1868d9);
    color: #f8fcff;
    border-color: rgba(123, 197, 255, 0.65);
}

.auth-actions .btn-main:disabled,
.auth-actions .btn-ghost:disabled {
    opacity: 0.65;
    cursor: default;
}

.auth-actions .btn-ghost {
    min-width: 90px;
    background: #111f33;
    color: #d8e8fb;
    border-color: #355173;
}

.auth-footnote {
    margin-top: 12px;
    color: #9eb5cd;
    font-size: 0.82rem;
    text-align: center;
}

.auth-footnote a {
    color: #9ed0ff;
    text-decoration: none;
}

.auth-footnote a:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    .auth-card {
        padding: 14px;
    }

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