/* ==========================================================
   MihenkIQ — Dashboard + Login
   Loaded only by home.html / login.html.
   Does not affect stock_analysis (uses style.css).
   ========================================================== */

html,
body {
    margin: 0;
    background: #0a1220;
}

.mihenkiq-dashboard {
    --mq-bg: #0a1220;
    --mq-bg-elevated: #0d1726;
    --mq-surface: #111c2e;
    --mq-surface-2: #152236;
    --mq-surface-hover: #18283d;
    --mq-border: rgba(120, 150, 190, 0.12);
    --mq-border-strong: rgba(120, 150, 190, 0.18);
    --mq-text: #e8eef7;
    --mq-text-secondary: #9aadc4;
    --mq-text-muted: #6f839c;
    --mq-accent: #2ec4b6;
    --mq-accent-soft: rgba(46, 196, 182, 0.14);
    --mq-accent-strong: #20d4c2;
    --mq-positive: #2dd4a0;
    --mq-negative: #f07178;
    --mq-warning: #e8b14a;
    --mq-sidebar-width: 248px;
    --mq-radius: 14px;
    --mq-radius-sm: 10px;
    --mq-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset,
        0 8px 24px rgba(0, 0, 0, 0.22);

    min-height: 100vh;
    display: flex;
    background: var(--mq-bg);
    color: var(--mq-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

.mihenkiq-dashboard *,
.mihenkiq-dashboard *::before,
.mihenkiq-dashboard *::after {
    box-sizing: border-box;
}

.mihenkiq-dashboard a {
    color: inherit;
    text-decoration: none;
}

.mihenkiq-dashboard button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.mq-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: var(--mq-sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    background: linear-gradient(
        180deg,
        #0b1524 0%,
        #0a1220 100%
    );
    border-right: 1px solid var(--mq-border);
}

.mq-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 8px 28px;
}

.mq-brand-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--mq-accent-strong);
}

.mq-brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mq-brand-text {
    min-width: 0;
}

.mq-brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #f3f7fc;
}

.mq-brand-tagline {
    margin-top: 5px;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--mq-text-muted);
    white-space: nowrap;
}

.mq-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 2px;
}

.mq-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--mq-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.mq-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--mq-text);
}

.mq-nav-item.active {
    background: linear-gradient(
        90deg,
        rgba(38, 184, 172, 0.34) 0%,
        rgba(38, 184, 172, 0.18) 100%
    );
    color: #f2fffc;
    box-shadow: inset 0 0 0 1px rgba(46, 196, 182, 0.22);
}

.mq-nav-item.active .mq-nav-icon {
    color: var(--mq-accent-strong);
}

.mq-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--mq-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mq-nav-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mq-nav-item.disabled {
    opacity: 0.55;
    cursor: default;
}

.mq-sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mq-market-hours {
    padding: 14px 14px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--mq-border);
}

.mq-market-hours-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--mq-text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.mq-market-hours-head svg {
    width: 15px;
    height: 15px;
    color: var(--mq-accent);
    flex-shrink: 0;
}

.mq-market-hours-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mq-market-hours-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.mq-market-hours-label {
    font-size: 11.5px;
    color: var(--mq-text-muted);
}

.mq-market-hours-value {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--mq-text);
    letter-spacing: 0.01em;
}

.mq-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--mq-text-muted);
    transition: color 0.15s ease, background 0.15s ease;
}

.mq-logout-link:hover {
    color: var(--mq-text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.mq-sidebar-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 50;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--mq-surface);
    border: 1px solid var(--mq-border-strong);
    color: var(--mq-text);
    align-items: center;
    justify-content: center;
}

.mq-sidebar-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.mq-sidebar-backdrop {
    display: none;
}


/* ==========================================================
   MAIN
   ========================================================== */

.mq-main {
    flex: 1;
    margin-left: var(--mq-sidebar-width);
    min-width: 0;
    padding: 22px 28px 32px;
}

.mq-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    min-height: 40px;
}

.mq-page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #f4f7fb;
}

.mq-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.mq-freshness {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--mq-text-secondary);
}

.mq-freshness-label {
    color: var(--mq-text-muted);
}

.mq-freshness-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mq-positive);
    font-weight: 600;
}

.mq-freshness-status.is-stale {
    color: var(--mq-warning);
}

.mq-freshness-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mq-positive);
    box-shadow: 0 0 0 3px rgba(45, 212, 160, 0.16);
}

.mq-freshness-status.is-stale .mq-freshness-dot {
    background: var(--mq-warning);
    box-shadow: 0 0 0 3px rgba(232, 177, 74, 0.16);
}

.mq-datetime {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--mq-border);
    color: var(--mq-text-secondary);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.mq-datetime svg {
    width: 14px;
    height: 14px;
    color: var(--mq-text-muted);
    flex-shrink: 0;
}

.mq-refresh-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--mq-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mq-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.mq-refresh-btn:hover {
    background: var(--mq-accent-soft);
    color: var(--mq-accent-strong);
}

.mq-refresh-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   INDEX CARDS
   ========================================================== */

.mq-index-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.mq-index-card {
    min-height: 118px;
    padding: 15px 16px 13px;
    border-radius: var(--mq-radius);
    background: var(--mq-surface);
    border: 1px solid var(--mq-border);
    box-shadow: var(--mq-shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mq-index-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--mq-text-secondary);
}

.mq-index-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
}

.mq-index-metrics {
    min-width: 0;
}

.mq-index-value {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--mq-text);
    line-height: 1.15;
}

.mq-index-value.is-placeholder,
.mq-placeholder {
    color: var(--mq-text-muted);
    font-weight: 500;
}

.mq-index-change {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--mq-text-muted);
}

.mq-index-change .pos,
.mq-dir-up {
    color: var(--mq-positive);
}

.mq-index-change .neg,
.mq-dir-down {
    color: var(--mq-negative);
}

.mq-index-change.mq-dir-up > span:first-child {
    color: var(--mq-positive);
    font-weight: 650;
}

.mq-index-change.mq-dir-down > span:first-child {
    color: var(--mq-negative);
    font-weight: 650;
}

.mq-index-change-hint {
    color: var(--mq-text-muted);
    font-weight: 500;
}

.mq-sparkline {
    width: 72px;
    height: 36px;
    flex-shrink: 0;
    opacity: 0.85;
}

.mq-sparkline svg {
    width: 100%;
    height: 100%;
    display: block;
}


/* ==========================================================
   METRICS STRIP
   ========================================================== */

.mq-metrics-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 14px;
    border-radius: var(--mq-radius);
    background: var(--mq-surface);
    border: 1px solid var(--mq-border);
    box-shadow: var(--mq-shadow);
    overflow: hidden;
    min-height: 78px;
}

.mq-metric-cell {
    padding: 16px 16px 14px;
    min-width: 0;
    position: relative;
}

.mq-metric-cell:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 0;
    bottom: 16px;
    width: 1px;
    background: var(--mq-border-strong);
}

.mq-metric-label {
    font-size: 11.5px;
    color: var(--mq-text-muted);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mq-metric-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.mq-metric-value {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--mq-text);
}

.mq-metric-delta {
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--mq-text-muted);
}

.mq-metric-delta.pos {
    color: var(--mq-positive);
}

.mq-metric-delta.neg {
    color: var(--mq-negative);
}


/* ==========================================================
   MID GRID — WATCHLIST + SCORES
   ========================================================== */

.mq-mid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
    align-items: stretch;
}

.mq-card {
    border-radius: var(--mq-radius);
    background: var(--mq-surface);
    border: 1px solid var(--mq-border);
    box-shadow: var(--mq-shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.mq-watchlist-card,
.mq-scores-card {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
}

.mq-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 8px;
    flex-shrink: 0;
}

.mq-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
    color: #f2f6fb;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mq-card-link {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--mq-accent);
    white-space: nowrap;
}

.mq-card-link:hover {
    color: var(--mq-accent-strong);
}

.mq-card-link[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

.mq-card-body {
    padding: 0 8px 8px;
    min-width: 0;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mq-table-panel {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mq-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.mq-table-body-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 150, 190, 0.35) transparent;
}

.mq-table-body-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.mq-table-body-scroll::-webkit-scrollbar-thumb {
    background: rgba(120, 150, 190, 0.35);
    border-radius: 999px;
}

.mq-table-body-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.mq-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.mq-watchlist-table,
.mq-scores-table {
    min-width: 0;
}

.mq-scores-table {
    min-width: 520px;
}

.mq-watchlist-table thead th,
.mq-scores-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #121d2e;
    box-shadow: inset 0 -1px 0 var(--mq-border);
}

.mq-kap-table {
    min-width: 640px;
}

.mq-table th {
    padding: 8px 10px 10px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--mq-text-muted);
    border-bottom: 1px solid var(--mq-border);
    white-space: nowrap;
}

.mq-table th.num,
.mq-table td.num {
    text-align: right;
}

.mq-table th.center,
.mq-table td.center {
    text-align: center;
}

.mq-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(120, 150, 190, 0.08);
    font-size: 12.5px;
    color: var(--mq-text-secondary);
    vertical-align: middle;
    white-space: nowrap;
    height: 34px;
}

.mq-click-row {
    position: relative;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.mq-click-row:hover,
.mq-click-row:focus-within {
    background: rgba(46, 196, 182, 0.07);
}

.mq-row-link {
    position: static;
    color: #e8eef7;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.mq-row-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mq-row-link:focus {
    outline: none;
}

.mq-click-row:focus-within {
    outline: 1px solid rgba(46, 196, 182, 0.35);
    outline-offset: -1px;
}

.mq-score-main {
    color: #f2f6fb;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mq-watchlist-table td.mq-dir-up,
.mq-watchlist-table td.mq-dir-down {
    font-weight: 650;
}

.mq-scores-table td.num,
.mq-watchlist-table td.num {
    font-variant-numeric: tabular-nums;
}

.mq-table tbody tr:last-child td {
    border-bottom: none;
}

.mq-empty-row td {
    padding: 36px 16px !important;
    text-align: center;
    color: var(--mq-text-muted);
    font-size: 13px;
    white-space: normal;
}

.mq-card-footnote {
    padding: 4px 16px 12px;
    font-size: 11px;
    color: var(--mq-text-muted);
}


/* ==========================================================
   KAP SECTION
   ========================================================== */

.mq-kap-card .mq-card-body {
    padding-bottom: 4px;
}

.mq-kap-footer {
    display: flex;
    justify-content: center;
    padding: 8px 16px 16px;
}

.mq-kap-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mq-accent);
}

.mq-kap-footer-link:hover {
    color: var(--mq-accent-strong);
}

.mq-kap-footer-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1280px) {
    .mq-main {
        padding: 20px 18px 28px;
    }

    .mq-index-value {
        font-size: 19px;
    }

    .mq-metric-value {
        font-size: 16px;
    }

    .mq-sparkline {
        width: 58px;
    }
}

@media (max-width: 1100px) {
    .mq-mid-grid {
        grid-template-columns: 1fr;
    }

    .mq-index-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mq-metrics-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mq-metric-cell:nth-child(3)::after {
        display: none;
    }

    .mq-metric-cell:nth-child(n + 4) {
        border-top: 1px solid var(--mq-border);
    }
}

@media (max-width: 900px) {
    .mq-sidebar-toggle {
        display: inline-flex;
    }

    .mq-sidebar {
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
    }

    .mihenkiq-dashboard.sidebar-open .mq-sidebar {
        transform: translateX(0);
    }

    .mq-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(3, 8, 16, 0.55);
    }

    .mihenkiq-dashboard.sidebar-open .mq-sidebar-backdrop {
        display: block;
    }

    .mq-main {
        margin-left: 0;
        padding: 64px 14px 24px;
    }

    .mq-topbar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .mq-page-title {
        font-size: 20px;
        padding-left: 0;
    }

    .mq-topbar-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .mq-index-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mq-metrics-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mq-metric-cell:nth-child(2n)::after {
        display: none;
    }

    .mq-metric-cell:nth-child(n + 3) {
        border-top: 1px solid var(--mq-border);
    }

    .mq-brand-tagline {
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .mq-index-row {
        grid-template-columns: 1fr;
    }

    .mq-metrics-strip {
        grid-template-columns: 1fr;
    }

    .mq-metric-cell::after {
        display: none !important;
    }

    .mq-metric-cell:not(:first-child) {
        border-top: 1px solid var(--mq-border);
    }
}


/* ==========================================================
   LOGIN
   ========================================================== */

.mq-login-page {
    --mq-bg: #0a1220;
    --mq-surface: #111c2e;
    --mq-border: rgba(120, 150, 190, 0.14);
    --mq-border-strong: rgba(120, 150, 190, 0.22);
    --mq-text: #e8eef7;
    --mq-text-secondary: #9aadc4;
    --mq-text-muted: #6f839c;
    --mq-accent: #2ec4b6;
    --mq-accent-soft: rgba(46, 196, 182, 0.14);
    --mq-accent-strong: #20d4c2;
    --mq-negative: #f07178;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(46, 196, 182, 0.10),
            transparent 42%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(32, 80, 140, 0.18),
            transparent 36%
        ),
        var(--mq-bg);
    color: var(--mq-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mq-login-page *,
.mq-login-page *::before,
.mq-login-page *::after {
    box-sizing: border-box;
}

.mq-login-card {
    width: min(100%, 420px);
    padding: 36px 34px 28px;
    border-radius: 16px;
    background: var(--mq-surface);
    border: 1px solid var(--mq-border);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.02) inset,
        0 18px 48px rgba(0, 0, 0, 0.35);
}

.mq-login-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
}

.mq-login-brand-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--mq-accent-strong);
}

.mq-login-brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mq-login-brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #f3f7fc;
}

.mq-login-brand-tagline {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--mq-text-muted);
}

.mq-login-heading {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #f2f6fb;
}

.mq-login-lede {
    margin: 0 0 24px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--mq-text-secondary);
}

.mq-login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(240, 113, 120, 0.35);
    background: rgba(240, 113, 120, 0.10);
    color: #ffb4b8;
    font-size: 13.5px;
    line-height: 1.45;
}

.mq-login-field {
    margin-bottom: 16px;
}

.mq-login-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--mq-text-secondary);
}

.mq-login-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid var(--mq-border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mq-text);
    font: inherit;
    font-size: 14.5px;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.mq-login-field input::placeholder {
    color: var(--mq-text-muted);
}

.mq-login-field input:hover {
    background: rgba(255, 255, 255, 0.045);
}

.mq-login-field input:focus {
    border-color: rgba(46, 196, 182, 0.55);
    box-shadow: 0 0 0 3px var(--mq-accent-soft);
    background: rgba(46, 196, 182, 0.04);
}

.mq-login-button {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 11px;
    color: #041512;
    background: linear-gradient(
        135deg,
        #2ec4b6 0%,
        #20d4c2 100%
    );
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition:
        filter 0.15s ease,
        transform 0.15s ease;
}

.mq-login-button:hover {
    filter: brightness(1.05);
}

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

.mq-login-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--mq-border);
    text-align: center;
    font-size: 12px;
    color: var(--mq-text-muted);
}

@media (max-width: 480px) {
    .mq-login-card {
        padding: 28px 22px 22px;
    }

    .mq-login-brand-name {
        font-size: 22px;
    }
}
