:root {
    --bg: #fff6f8;
    --bg-soft: #ffe7ee;
    --panel: #ffffff;
    --ink: #1f1f24;
    --muted: #6b6670;
    --brand: #de6f79;
    --brand-dark: #cb5d6a;
    --accent: #2a2a2f;
    --line: #f1ccd3;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(circle at top right, #ffdbe4 0%, transparent 28%),
        radial-gradient(circle at 15% 75%, #ffe8ef 0%, transparent 22%),
        var(--bg);
    color: var(--ink);
}

.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.sidebar {
    width: 240px;
    min-width: 240px;
    flex: 0 0 240px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #2a2a2f 0%, #1d1d22 100%);
    color: #ffe7ed;
    padding: 18px;
    border-right: 1px solid #3e3e46;
}
.brand-block { margin-bottom: 16px; }
.brand-logo {
    width: 100%;
    max-width: 180px;
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
}
.brand-subtitle {
    margin: 10px 0 0;
    color: #f4c2cd;
    font-size: 12px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar a {
    color: #f5e3e8;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
}
.sidebar a.active,
.sidebar a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.sidebar a.active {
    background: linear-gradient(135deg, #de6f79, #cb5d6a);
    color: #fff;
    border-color: transparent;
}
.nav-section {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-section-title {
    margin: 0 0 6px;
    padding: 0 12px;
    color: #f4c2cd;
    font-size: 12px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
.subnav-link {
    display: block;
    margin-left: 12px;
    margin-top: 4px;
    width: auto;
    font-size: 15px;
    padding: 9px 12px;
}

.content {
    flex: 1 1 auto;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}
.topbar { display: flex; justify-content: space-between; align-items: center; }
.user-chip {
    background: linear-gradient(120deg, #fff, #fff0f4);
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    font-size: 13px;
}
.logout-link { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.logout-link:hover { text-decoration: underline; }
.edit-link {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.edit-link:hover {
    background: #fff2f5;
    text-decoration: none;
}
.delete-link {
    color: #9a2430;
    background: #fff4f5;
}
.delete-link:hover {
    background: #ffe2e5;
}
.inline-delete-form {
    display: inline-block;
    margin: 0;
}
.inline-delete-form button {
    font: inherit;
    line-height: 1;
}
.support-reply-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 84px;
}
.btn-link {
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-link:hover {
    background: var(--brand-dark);
}
.stock-link {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
}
.stock-link:hover {
    text-decoration: underline;
}

.card-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 20px rgba(222, 111, 121, 0.08);
}
.stat p { font-size: 22px; margin: 8px 0 0; font-weight: 600; }
.wide { grid-column: 1 / -1; }

.statement-tab-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0 18px;
}
.statement-tab {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 600;
    cursor: pointer;
}
.statement-tab.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.statement-pane {
    display: none;
}
.statement-pane.is-active {
    display: block;
}
.statement-company-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

h3 { margin: 0 0 12px; }
.toolbar, .actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.support-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
    align-items: start;
}
.support-form-grid .support-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.support-form-grid .support-field.full,
.support-form-grid .support-form-actions.full {
    grid-column: 1 / -1;
}
.support-form-actions {
    justify-content: flex-start;
    margin-top: 4px;
}
.retailer-form-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    align-items: center;
    margin-top: 6px;
}
label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.field-note {
    font-size: 12px;
    color: var(--muted);
}
input, select, button, textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    background: #fff;
}
textarea {
    min-height: 96px;
    resize: vertical;
}
button { cursor: pointer; }
button.primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
button.primary:hover { background: var(--brand-dark); }
button:hover {
    transform: translateY(-1px);
    transition: 120ms ease;
}

.badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    background: #dcfce7;
    color: #166534;
}
.badge.warning { background: #fef3c7; color: #92400e; }

table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 10px 8px;
    font-size: 14px;
}
.topbar h2 { color: var(--accent); }

.card h3 {
    color: #352631;
    border-bottom: 1px dashed #f1ccd3;
    padding-bottom: 8px;
}

.stat {
    background: linear-gradient(160deg, #fff, var(--bg-soft));
}
.muted { color: var(--muted); text-align: center; }
.alert {
    border: 1px solid var(--line);
    background: #fff5f7;
    color: #7b2f3b;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}
.alert-error {
    border-color: #ef9aa7;
    background: #fff0f3;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(31, 31, 36, 0.55);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 50;
}
.modal-backdrop.is-open {
    display: flex;
}
.modal-shell {
    width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fffdfd;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(42, 42, 47, 0.25);
    padding: 20px;
}
.billing-retailer-modal {
    width: min(920px, 100%);
}
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--accent);
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 700;
}
.modal-close:hover {
    background: #fff2f5;
}
.modal-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.table-tools,
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0;
    flex-wrap: wrap;
}
.table-search-input {
    min-width: 260px;
}
.table-page-size {
    min-width: 120px;
}
.table-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.table-page-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--accent);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}
.table-page-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.table-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.billing-shell {
    padding: 24px;
}
.billing-card {
    max-width: 1280px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 20px rgba(222, 111, 121, 0.08);
}
.billing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.billing-header h1 {
    margin: 6px 0 0;
    color: var(--accent);
}
.primary-order-builder {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,244,247,0.92));
    padding: 16px;
    margin-top: 18px;
}
.primary-order-builder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.primary-order-pick {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.primary-order-pick input[type="text"] {
    flex: 1 1 420px;
    min-width: 260px;
}
.primary-order-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}
.primary-order-items {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.primary-order-item-card {
    background: linear-gradient(160deg, #fff, var(--bg-soft));
}
.primary-order-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.primary-order-item-title {
    margin: 0;
    font-weight: 700;
    color: var(--accent);
}
.primary-order-item-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.primary-order-size-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.primary-order-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.primary-order-actions {
    margin-top: 18px;
    justify-content: flex-end;
}
.primary-order-modal {
    width: min(1040px, 100%);
}
#primary-order-size-table input {
    width: 100%;
}
.billing-items-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}
.billing-items-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.billing-barcode-input {
    width: min(240px, 100%);
}
.billing-charge-grid {
    margin-bottom: 14px;
}
.billing-items-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 10px;
}
.select-search-input {
    min-width: 180px;
}
.typeahead-input {
    width: 100%;
}
.billing-product-typeahead {
    width: 100%;
    min-width: 220px;
}
.billing-retailer-picker {
    width: 100%;
}
.billing-retailer-picker .typeahead-input {
    width: 100%;
}
.billing-retailer-add-btn {
    align-self: flex-start;
    margin-top: 6px;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}
.billing-retailer-add-btn:hover {
    color: var(--accent);
    background: transparent;
    transform: none;
}
.billing-items-wrap table select,
.billing-items-wrap table input {
    min-width: 120px;
}
.billing-items-wrap table .billing-input-sm {
    min-width: 74px;
    width: 74px;
}
.billing-items-wrap table .billing-mrp-input,
.billing-items-wrap table .billing-line-amount {
    min-width: 110px;
    width: 110px;
}
.billing-items-wrap table .billing-input-xs {
    min-width: 62px;
    width: 62px;
}
.billing-stock-note {
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}
.billing-stock-value {
    font-weight: 600;
    color: var(--accent);
}
.remove-row-btn {
    border: 1px solid var(--line);
    background: #fff4f6;
    color: #8a3240;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}
.billing-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.billing-card .actions {
    margin-top: 20px;
}
.summary-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: #fff7f9;
}
.summary-card p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
}
.summary-card strong {
    font-size: 22px;
}
.summary-card.total {
    background: linear-gradient(135deg, #de6f79, #cb5d6a);
    color: #fff;
}
.summary-card.total p {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 980px) {
    body {
        height: auto;
        overflow: auto;
    }
    .app-shell {
        height: auto;
        overflow: visible;
    }
    .app-shell { flex-direction: column; }
    .sidebar {
        width: 100%;
        min-width: 100%;
        flex: 0 0 auto;
        height: auto;
        overflow: visible;
    }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .primary-order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content {
        height: auto;
        overflow: visible;
        padding: 14px;
    }
    .sidebar { padding: 14px; }
    .brand-logo { max-width: 150px; }
    .topbar {
        position: sticky;
        top: 0;
        z-index: 20;
        background: rgba(255, 246, 248, 0.94);
        backdrop-filter: blur(6px);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 10px 12px;
    }
}
@media (max-width: 620px) {
    .billing-retailer-picker {
        flex-direction: column;
        align-items: stretch;
    }
    .billing-shell {
        padding: 12px;
    }
    .billing-card {
        padding: 14px;
        border-radius: 14px;
    }
    .billing-header,
    .billing-items-head {
        flex-direction: column;
        align-items: stretch;
    }
    .billing-items-tools {
        width: 100%;
        justify-content: stretch;
    }
    .billing-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .modal-backdrop {
        padding: 12px;
    }
    .modal-shell {
        padding: 14px;
        border-radius: 14px;
    }
    .billing-summary {
        grid-template-columns: 1fr;
    }
    .primary-order-summary { grid-template-columns: 1fr; }
    .card table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .card-grid, .form-grid, .support-form-grid { grid-template-columns: 1fr; }
    .statement-company-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .topbar h2 {
        font-size: 20px;
        margin: 0;
    }
    .user-chip {
        font-size: 11px;
        padding: 6px 10px;
    }
    .card {
        border-radius: 10px;
        padding: 12px;
    }
    th, td {
        padding: 8px 6px;
        font-size: 13px;
    }
    input, select, button {
        width: 100%;
        min-height: 40px;
    }
    .toolbar, .actions {
        gap: 8px;
    }
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.table-thumb {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff3f6;
}

.image-preview-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: #fffafb;
}

.admin-image-preview {
    width: 100%;
    max-width: 220px;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.rich-editor {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.rich-editor-toolbar {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: #fff6f8;
    flex-wrap: wrap;
}

.rich-editor-btn {
    width: auto;
    min-height: auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--accent);
}

.rich-editor-surface {
    min-height: 180px;
    padding: 14px;
    outline: none;
    color: var(--ink);
    line-height: 1.6;
}

.rich-editor-surface:empty::before {
    content: "Write content here...";
    color: #aa9da4;
}

.state-selection-wrap {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffafb;
}

.state-selection-wrap.is-hidden {
    display: none;
}

.state-selection-title {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.state-pill-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.state-pill {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.state-pill input {
    width: auto;
    min-height: auto;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.dashboard-carousel-card {
    padding: 0;
    overflow: hidden;
}

.dashboard-carousel {
    position: relative;
}

.dashboard-carousel-track {
    position: relative;
    min-height: 340px;
}

.dashboard-banner-slide {
    display: none;
    position: relative;
    min-height: 340px;
}

.dashboard-banner-slide.is-active {
    display: block;
}

.dashboard-banner-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.dashboard-carousel-controls {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-nav,
.carousel-dot {
    pointer-events: auto;
}

.carousel-nav {
    width: auto;
    min-height: auto;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    backdrop-filter: blur(10px);
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot {
    width: 12px;
    min-height: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    border: 0;
}

.carousel-dot.is-active {
    width: 28px;
    background: #fff;
}

.dashboard-announcement-card h3 {
    margin-bottom: 0;
}

.dashboard-announcement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-state-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff1f4;
    color: var(--brand-dark);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
}

.dashboard-announcement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-announcement-item {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fffafb 100%);
}

.dashboard-announcement-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    background: #fff0f4;
}

.dashboard-announcement-copy {
    padding: 18px 18px 18px 0;
}

.dashboard-announcement-copy h4 {
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--accent);
}

.dashboard-announcement-body {
    color: var(--ink);
    line-height: 1.6;
}

.dashboard-announcement-body p:first-child {
    margin-top: 0;
}

.dashboard-announcement-body p:last-child {
    margin-bottom: 0;
}

.dashboard-documents-card h3 {
    margin-bottom: 0;
}

.dashboard-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fffafb 100%);
    box-shadow: 0 10px 20px rgba(222, 111, 121, 0.06);
}

.dashboard-document-meta h4 {
    margin: 0;
    font-size: 20px;
    color: var(--accent);
}

.dashboard-document-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .dashboard-announcement-grid,
    .dashboard-document-grid,
    .state-pill-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-announcement-item {
        grid-template-columns: 1fr;
    }

    .dashboard-announcement-image {
        min-height: 180px;
    }

    .dashboard-announcement-copy {
        padding: 0 18px 18px;
    }

    .dashboard-document-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-document-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .dashboard-banner-image,
    .dashboard-banner-slide,
    .dashboard-carousel-track {
        min-height: 280px;
        height: 280px;
    }

    .dashboard-announcement-head {
        flex-direction: column;
    }
}

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

.login-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 16px 30px rgba(203, 93, 106, 0.16);
}

.login-logo {
    width: 210px;
    max-width: 100%;
    display: block;
    margin-bottom: 10px;
}

.login-card h1 {
    margin: 6px 0 8px;
    font-size: 28px;
    color: var(--accent);
}

.login-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 12px;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.remember-row input {
    width: auto;
    min-height: auto;
}

.login-form button {
    margin-top: 4px;
}

.login-links {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.login-links a {
    color: var(--brand-dark);
    text-decoration: none;
    font-size: 13px;
}

.login-links a:hover {
    text-decoration: underline;
}
