* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    overflow-x: hidden;
    max-width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-utility {
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}

.top-utility__content {
    min-height: 32px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 6px 0;
}

.top-utility__content a {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
}

.top-utility__content a:hover {
    text-decoration: underline;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.header {
    background: #0f172a;
    color: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.logo {
    margin: 0;
    font-size: 24px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.7;
    overflow-wrap: anywhere;
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}

.nav__user {
    color: #94a3b8;
}

.language-switcher {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(203, 213, 225, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.18);
    white-space: nowrap;
}

.language-switcher__option {
    min-width: 36px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.language-switcher__option:hover,
.language-switcher__option:focus-visible {
    background: rgba(148, 163, 184, 0.18);
    color: #f8fafc;
    outline: none;
}

.language-switcher__option.is-active {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.language-switcher--utility {
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(148, 163, 184, 0.45);
}

.language-switcher--utility .language-switcher__option {
    color: #475569;
}

.language-switcher--utility .language-switcher__option.is-active {
    background: #0f172a;
    color: #f8fafc;
}

.auth-language-switcher {
    width: min(1180px, 92%);
    margin: 18px auto 0;
    display: flex;
    justify-content: flex-end;
}

.auth-language-switcher .language-switcher {
    flex-direction: row;
}

.language-switcher--auth {
    background: rgba(15, 23, 42, 0.48);
}

.lab-switch {
    margin: 0;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.lab-switch__label {
    cursor: pointer;
    outline: none;
}

.lab-switch__label:focus-visible {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
    border-radius: 6px;
}

.lab-switch__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    display: none;
    padding: 6px;
    background: #0f172a;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3);
    z-index: 10;
}

.lab-switch.is-open .lab-switch__menu {
    display: block;
}

.lab-switch__menu select {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 6px 28px 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lab-switch__menu::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 18px;
    width: 6px;
    height: 6px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    pointer-events: none;
}

.section {
    margin-bottom: 32px;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    min-width: 0;
}

.section__title {
    margin: 0;
    text-align: left;
}

.section__title-center {
    flex: 1;
    text-align: center;
}

.section__actions {
    margin-left: auto;
}

.section__title-center {
    flex: 1;
    text-align: center;
}

.section__actions {
    margin-left: auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card-title {
    margin: 0 0 12px;
    font-size: 16px;
}

.card-link {
    color: inherit;
    text-decoration: none;
}

.card--interactive {
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-link:hover .card--interactive,
.card-link:focus-visible .card--interactive {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.page-main {
    flex: 1;
}

.site-footer {
    margin-top: 28px;
    background: #e9eef5;
    border-top: 1px solid #d1dae6;
    color: #64748b;
}

.site-footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 12px;
}

.site-footer__meta {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.02em;
}

.site-footer__beian {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    line-height: 1.35;
}

.site-footer__beian-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #475569;
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-footer__beian-link:hover {
    color: #334155;
}

.site-footer__beian-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.site-footer__code {
    color: #64748b;
}

@media (max-width: 720px) {
    .site-footer__content {
        gap: 4px;
        padding: 8px 0 10px;
    }

    .site-footer__beian {
        gap: 6px;
        font-size: 10px;
    }

    .site-footer__beian-icon {
        width: 12px;
        height: 12px;
    }
}

.grid {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

.stat__label {
    font-size: 14px;
    color: #64748b;
    overflow-wrap: anywhere;
}

.stat__value {
    font-size: 32px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.button.primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.button.secondary {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.button.danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-group form {
    margin: 0;
}

.section-corner-links {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 8px;
}

.button.button-mini {
    min-width: 64px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    border-color: #cbd5e1;
}

.button.header-action {
    min-width: 132px;
    min-height: 38px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
}

.member-management-section .button.header-action {
    min-width: 132px;
    min-height: 38px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
}

.user-table .actions-col {
    width: 320px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.table-fixed {
    width: 100%;
}

th,
td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid #e2e8f0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.table-wrap {
    overflow-x: auto !important;
    max-width: 100%;
}

.table-wrap table {
    table-layout: fixed !important;
    width: 100% !important;
}

.table-wrap td,
.table-wrap th {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 1px !important;
}

.break-anywhere {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}


.item-title {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.info-list li {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.list li {
    word-break: break-word;
    overflow-wrap: anywhere;
}

tr.warning {
    background: #fefce8;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

input,
select,
textarea {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    font-size: 14px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.search-bar.compact {
    max-width: 620px;
}

.item-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.item-filters__row {
    display: flex;
    gap: 10px;
}

.item-filters__control,
.item-filters__button {
    height: 38px;
    box-sizing: border-box;
}

.item-filters__row .item-filters__control {
    margin: 0;
}

.item-filters__row--search input.item-filters__control {
    width: 100%;
}

.item-filters__select {
    flex: 1 1 0;
    min-width: 0;
}

.item-filters__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.item-filters__row--actions {
    width: 100%;
}

.item-filters__button--search {
    flex: 2 1 0;
    font-weight: 700;
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.item-filters__button--reset {
    flex: 1 1 0;
}

@media (min-width: 769px) {
    .item-filters {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .item-filters__row--search input.item-filters__control {
        width: 300px;
    }

    .item-filters__row--selects {
        gap: 10px;
    }

    .item-filters__row--actions {
        width: auto;
        min-width: 240px;
    }

    .item-filters__chips {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .item-filters__row--selects {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .item-filters__row--actions {
        display: grid;
        grid-template-columns: 2fr 1fr;
    }
}

.item-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    text-decoration: none;
}

.item-filter-chip__remove {
    font-size: 15px;
    line-height: 1;
}

.hint {
    margin-top: 0;
    margin-bottom: 14px;
    color: #475569;
    font-size: 14px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.messages {
    margin-bottom: 16px;
}

.message {
    padding: 10px 14px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}

.auth-body {
    background: #0f172a;
    color: #fff;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.site-footer--auth {
    margin-top: 0;
    background: rgba(15, 23, 42, 0.9);
    border-top-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

.site-footer--auth .site-footer__beian-link {
    color: #cbd5e1;
}

.site-footer--auth .site-footer__beian-link:hover {
    color: #e2e8f0;
}

.site-footer--auth .site-footer__code {
    color: #94a3b8;
}

.auth-card {
    background: #fff;
    color: #1f2937;
    padding: 32px;
    border-radius: 14px;
    width: min(380px, 90%);
}

.terms-card {
    margin: 16px 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    display: grid;
    gap: 6px;
}

.terms-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0f172a;
}

.terms-card__title input {
    accent-color: #2563eb;
}

.terms-card__links {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

.terms-card__links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.terms-card__links a:hover {
    text-decoration: underline;
}

.terms-card__note {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.error {
    color: #dc2626;
    font-size: 12px;
}

.item-row {
    cursor: pointer;
}

.item-row:hover {
    background: #f8fafc;
}

.row-action-link {
    position: relative;
    z-index: 2;
}

.batch-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hint-inline {
    font-size: 13px;
    color: #64748b;
}

.checkbox-col {
    width: 44px;
    text-align: center;
    padding-right: 10px;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
}

.row-actions--owner {
    flex-wrap: wrap;
}

.row-actions form {
    margin: 0;
    display: inline-flex;
    max-width: 100%;
}

.row-actions .button {
    white-space: nowrap;
}

.row-actions--uniform {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.row-actions--uniform form,
.row-actions--uniform a {
    flex: 0 0 auto;
}

.row-actions--uniform .button {
    min-width: 92px;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}


.button.action-soft {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0369a1;
}

.button.action-equal {
    min-width: 88px;
}

.button.action-compact {
    min-width: 72px;
    padding: 6px 10px;
    font-size: 13px;
}

.item-table thead th,
.item-table tbody td {
    text-align: center;
}

.checkbox-col + th,
.checkbox-col + td {
    padding-left: 18px;
}

@media (max-width: 900px) {
    .header__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .col-hide-mobile {
        display: none;
    }

    .row-actions {
        flex-wrap: wrap;
        gap: 6px;
        overflow-x: visible;
    }

    .row-actions--uniform {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .row-actions--uniform form,
    .row-actions--uniform a,
    .row-actions--uniform .button {
        width: 100%;
    }

    .button.header-action,
    .row-actions--uniform .button {
        min-height: 40px;
        font-size: 14px;
        padding: 8px 12px;
    }

    .section-corner-links {
        margin-bottom: 10px;
    }

    .row-actions .button {
        min-width: auto;
    }

    .member-management-section .button.action-equal,
    .member-management-section .button.action-compact {
        min-width: 100%;
        padding: 8px 12px;
        font-size: 14px;
        line-height: 1.3;
    }

    .member-management-section .button-group {
        width: 100%;
    }

    .member-management-section .button-group form,
    .member-management-section .button-group .button {
        width: 100%;
    }

    .user-table .actions-col {
        width: 220px;
    }
}

.radio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    width: fit-content;
}

.radio-toggle > div {
    margin: 0;
}

.radio-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    color: #334155;
    font-weight: 600;
    transition: all 0.2s ease;
}

.radio-toggle > div:last-child label {
    border-right: none;
}

.radio-toggle input[type="radio"] {
    display: none;
}

.radio-toggle label.is-active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.toggle-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.switch-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
}

.switch-toggle__label {
    font-size: 14px;
    min-width: 72px;
    text-align: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5f5;
    transition: 0.2s;
    border-radius: 999px;
}

.switch__slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.switch input:checked + .switch__slider {
    background-color: #2563eb;
}

.switch input:checked + .switch__slider::before {
    transform: translateX(26px);
}



.membership-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.membership-leave-form {
    margin: 0;
}

.account-form {
    margin-top: 12px;
}

.account-form + .account-form {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.password-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-toggle {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.item-notes .note-create-textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    resize: vertical;
    box-sizing: border-box;
}

.item-notes .note-edit-textarea {
    display: block;
    width: 100%;
    min-height: 96px;
    resize: vertical;
    box-sizing: border-box;
}


.brand-lockup {
    display: grid;
    gap: 3px;
}

.brand-lockup__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
}

.brand-lockup__lab-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}

.brand-lockup__lab {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.brand-lockup__lab-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f8fafc;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.18s ease;
}

.brand-lockup__lab-link::after {
    content: "↗";
    font-size: 11px;
    color: #94a3b8;
    transform: translateY(-1px);
    transition: color 0.18s ease, transform 0.18s ease;
}

.brand-lockup__lab-link:hover,
.brand-lockup__lab-link:focus-visible {
    color: #dbeafe;
}

.brand-lockup__lab-link:hover::after,
.brand-lockup__lab-link:focus-visible::after {
    color: #dbeafe;
    transform: translate(1px, -1px);
}

.logo {
    margin: 0;
    font-size: 23px;
    line-height: 1.16;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: #cbd5e1;
    opacity: 0.82;
    overflow-wrap: anywhere;
}

.lab-switch {
    margin: 0;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}

.lab-switch__toggle {
    padding: 0;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.lab-switch__toggle:hover,
.lab-switch__toggle:focus-visible {
    color: #f8fafc;
    border-color: rgba(248, 250, 252, 0.45);
    outline: none;
}

.lab-switch__menu {
    min-width: 240px;
    top: calc(100% + 10px);
}

.lab-switch__menu-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #cbd5e1;
}

.nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    position: relative;
    padding-bottom: 2px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: rgba(226, 232, 240, 0.65);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
    transform: scaleX(1);
}

.site-footer__brandlockup {
    display: grid;
    gap: 2px;
    justify-items: center;
}

.site-footer__tagline {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.auth-main {
    width: min(1180px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(320px, 440px);
    gap: 22px;
    align-items: center;
    padding: 28px 0 36px;
}

.auth-panel {
    color: #e2e8f0;
}

.auth-panel--intro {
    display: grid;
    gap: 8px;
}

.auth-panel__eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
}

.auth-panel__title {
    margin: 0;
    font-size: clamp(34px, 4vw, 42px);
    line-height: 1.08;
}

.auth-panel__subtitle {
    margin: 0;
    font-size: clamp(18px, 2vw, 21px);
    font-weight: 400;
    color: #dbe4f0;
}

.auth-panel__description {
    margin: 2px 0 4px;
    font-size: clamp(16px, 1.8vw, 18px);
    color: rgba(226, 232, 240, 0.72);
}

.auth-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.auth-feature-list li {
    padding: 11px 13px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.45;
}

.auth-card {
    padding: 32px;
    border-radius: 18px;
    width: 100%;
    border: 1px solid rgba(203, 213, 225, 0.7);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.auth-card--wide {
    max-width: 460px;
}

.auth-card__brand {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.auth-card h2 {
    margin: 0;
    font-size: 26px;
}

.auth-card__subtitle {
    margin: 8px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.auth-card form {
    gap: 12px;
}

.auth-card .form-field {
    gap: 5px;
}

.auth-card__submit {
    width: 100%;
    min-height: 44px;
    font-size: 15px;
    font-weight: 700;
}

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap input {
    width: 100%;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}

@media (max-width: 980px) {
    .header__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

    .auth-language-switcher {
        width: min(560px, 100%);
        margin: 14px auto 0;
    }

    .auth-main {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        padding-top: 20px;
    }

    .auth-panel {
        width: min(560px, 100%);
    }

    .auth-card,
    .auth-card--wide {
        max-width: min(560px, 100%);
    }
}

@media (max-width: 720px) {
    .header {
        padding: 16px 0;
    }

    .language-switcher__option {
        min-width: 34px;
    }

    .auth-language-switcher {
        width: min(100%, 92%);
        margin-top: 12px;
    }

    .brand-lockup__eyebrow {
        font-size: 11px;
    }

    .logo {
        font-size: 21px;
    }

    .subtitle {
        font-size: 12px;
    }

    .brand-lockup__lab-row {
        gap: 6px;
    }

    .brand-lockup__lab-link {
        font-size: 15px;
    }

    .auth-main {
        width: min(100%, 92%);
        gap: 14px;
        padding: 16px 0 24px;
    }

    .auth-panel--intro {
        gap: 6px;
    }

    .auth-panel__eyebrow {
        font-size: 12px;
        letter-spacing: 0.12em;
    }

    .auth-panel__title {
        font-size: 35px;
        line-height: 1.05;
    }

    .auth-panel__subtitle {
        font-size: 19px;
    }

    .auth-panel__description {
        margin-top: 0;
        font-size: 16px;
    }

    .auth-feature-list {
        gap: 6px;
        margin-top: 2px;
    }

    .auth-feature-list li {
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 15px;
        line-height: 1.4;
    }

    .auth-card {
        padding: 22px;
        border-radius: 16px;
    }

    .auth-card__brand {
        margin-bottom: 6px;
    }

    .auth-card h2 {
        font-size: 24px;
    }

    .auth-card__subtitle {
        margin-top: 6px;
        font-size: 13px;
    }

    .auth-card form {
        gap: 10px;
    }

    .form-helper {
        margin: 0;
        font-size: 13px;
    }
}
