:root {
    --bg: #0a0809;
    --surface: #110d0f;
    --surface-2: #181214;
    --surface-3: #21191b;
    --line: #3b2d31;
    --line-soft: #281e21;
    --text: #f3ede8;
    --muted: #a39898;
    --accent: #c7a56a;
    --accent-hover: #d5b77f;
    --accent-ink: #17110a;
    --accent-soft: rgba(199, 165, 106, 0.13);
    --burgundy: #6f0824;
    --burgundy-deep: #250910;
    --burgundy-line: #4a2630;
    --burgundy-soft: rgba(111, 8, 36, 0.16);
    --green: #77b99a;
    --red: #d86672;
    --red-soft: rgba(111, 8, 36, 0.2);

    /* Совместимость со старыми локальными переменными шаблонов. */
    --font-family: "Rubik", Inter, ui-sans-serif, -apple-system, sans-serif;
    --color-background: var(--bg);
    --color-card-bg: var(--surface);
    --color-card-border: var(--line-soft);
    --color-card-shadow: rgba(0, 0, 0, 0.28);
    --color-header: var(--text);
    --color-label: #c8bcba;
    --color-input-text: var(--text);
    --color-input-border: var(--line);
    --color-submit-btn-bg: #b9975f;
    --color-submit-btn-text: var(--accent-ink);
    --color-btn-bg: #b9975f;
    --color-btn-hover: var(--accent-hover);
    --color-btn-text: var(--accent-ink);
    --color-error: #ef9ba4;
    --border-radius-card: 0;
    --border-radius-input: 0;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--bg);
}

body.artist-page {
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 72px 24px 56px;
    color: var(--text);
    background:
        linear-gradient(118deg, rgba(111, 8, 36, 0.16), transparent 34rem),
        radial-gradient(circle at 100% 0%, rgba(124, 32, 55, 0.11), transparent 36rem),
        var(--bg);
    font-family: "Rubik", Inter, ui-sans-serif, -apple-system, sans-serif;
    font-weight: 300;
}

body.artist-page--center {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.artist-page--form {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

body.artist-page--catalog,
body.artist-page--detail {
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
    color: var(--text);
    font-family: "Noto Serif", "Iowan Old Style", Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

h1 {
    line-height: 1.08;
}

body.artist-page .container {
    color: var(--text);
}

body.artist-page--form .container {
    width: min(620px, 100%);
}

body.artist-page--center .container,
body.artist-page--form form,
.card,
.sketch-card {
    border: 1px solid var(--line-soft);
    border-radius: 0;
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(111, 8, 36, 0.14), transparent 44%),
        rgba(17, 13, 15, 0.96);
    box-shadow: none;
}

body.artist-page--center .container,
body.artist-page--form form {
    position: relative;
}

body.artist-page--center .container::before,
body.artist-page--form form::before,
.card::before {
    position: absolute;
    top: -1px;
    left: 28px;
    width: 54px;
    height: 2px;
    content: "";
    background: var(--accent);
}

body.artist-page--center .container {
    max-width: 620px;
    padding: clamp(32px, 6vw, 54px);
}

body.artist-page--center h1 {
    margin-top: 0;
    font-size: clamp(30px, 5vw, 46px);
}

body.artist-page--form h1 {
    margin: 0 0 24px;
    font-size: clamp(30px, 5vw, 46px);
    text-align: left;
}

body.artist-page--form form {
    padding: clamp(22px, 5vw, 34px);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #c8bcba;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    color: var(--text);
    background: #130c0f;
    font-weight: 300;
    transition: border-color 150ms, box-shadow 150ms, background 150ms;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(199, 165, 106, 0.82);
    box-shadow: 0 0 0 2px rgba(199, 165, 106, 0.14);
}

input::placeholder,
textarea::placeholder {
    color: #766a6c;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #b9975f;
}

input[type="file"] {
    min-height: 56px;
    padding: 8px;
}

input[type="file"]::file-selector-button {
    min-height: 38px;
    margin-right: 12px;
    padding: 8px 14px;
    border: 1px solid var(--accent);
    border-radius: 0;
    color: var(--accent-ink);
    background: #b9975f;
    cursor: pointer;
}

button[type="submit"],
.btn,
.btn-back,
.reset-link {
    display: inline-flex;
    min-height: 46px;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 0;
    color: var(--accent-ink);
    background: #b9975f;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 120ms, filter 120ms, background 120ms;
}

button[type="submit"]:hover,
.btn:hover,
.btn-back:hover,
.reset-link:hover {
    color: var(--accent-ink);
    background: var(--accent-hover);
    filter: brightness(1.04);
    transform: none;
}

button[type="submit"]:active,
.btn:active,
.btn-back:active {
    transform: translateY(1px);
}

body.artist-page--delete button[type="submit"] {
    border-color: rgba(216, 102, 114, 0.5);
    color: #efb9be;
    background: var(--red-soft);
}

.error,
.errorlist,
.filter-error {
    color: #ef9ba4;
}

.errorlist {
    padding-left: 18px;
}

.messages,
.message {
    color: var(--text);
}

.messages div,
.message {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    color: #d8c8c6;
    background: var(--surface-2);
}

.message.success {
    border-color: rgba(119, 185, 154, 0.42);
    color: #a9d8c1;
    background: rgba(55, 107, 82, 0.14);
}

.message.error,
.messages div {
    border-color: rgba(216, 102, 114, 0.5);
    color: #efb9be;
    background: var(--red-soft);
}

/* Select2 следует той же палитре, что и обычные поля формы. */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    padding: 6px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: var(--text);
    line-height: 32px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 1px solid rgba(199, 165, 106, 0.42);
    border-radius: 0;
    color: #ead8b9;
    background: var(--accent-soft);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right-color: rgba(199, 165, 106, 0.34);
    color: var(--muted);
}
/* Исправление поля тегов Select2 */
#id_tags + .select2-container .select2-selection--multiple {
    min-height: 46px;
    height: auto;
    padding: 6px 10px;
}

#id_tags + .select2-container
.select2-selection--multiple
.select2-selection__rendered {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 0;
    overflow: visible;
    line-height: normal;
    white-space: normal;
    list-style: none;
}

#id_tags + .select2-container .select2-selection__choice {
    margin: 0;
}

#id_tags + .select2-container .select2-search--inline {
    float: none;
    flex: 1 1 140px;
    min-width: 140px;
}


#id_tags + .select2-container .select2-search__field {
    width: 100% !important;
    min-height: 30px;
    height: 30px;
    margin: 0;
    padding: 0 4px;
    border: none;
    outline: none;
    box-shadow: none;
    resize: none;
    background: transparent;
}

.select2-dropdown {
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    background: var(--surface);
}

.select2-search--dropdown .select2-search__field {
    color: var(--text);
    background: #100c0e;
}

.select2-container--default .select2-results__option--selected {
    background: var(--surface-3);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color: #f2e5cf;
    background: rgba(111, 8, 36, 0.42);
}

/* Каталог эскизов. */
body.artist-page--catalog .container,
body.artist-page--detail .container {
    width: min(1420px, 100%);
    max-width: none;
    margin: 0 auto;
}

body.artist-page--catalog h1,
body.artist-page--detail h1 {
    margin: 0 0 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-soft);
    font-size: clamp(38px, 5vw, 58px);
}

.filters {
    padding: 18px;
    border: 1px solid var(--line-soft);
    background:
        linear-gradient(100deg, rgba(111, 8, 36, 0.18), transparent 58%),
        rgba(17, 13, 15, 0.96);
}

.filters input,
.filters select {
    min-width: 0;
    border-color: var(--line);
    color: var(--text);
    background: #130c0f;
}

.filters button,
.reset-link {
    min-height: 46px;
}

.reset-link {
    border-color: var(--burgundy-line);
    color: var(--text);
    background:
        linear-gradient(90deg, rgba(111, 8, 36, 0.26), transparent),
        var(--surface-3);
}

.sketch-grid {
    gap: 1px;
    padding: 1px;
    border: 1px solid var(--line-soft);
    background: var(--line-soft);
}

.sketch-card {
    border: 0;
    background:
        linear-gradient(145deg, rgba(111, 8, 36, 0.08), transparent 52%),
        var(--surface);
    transition: background 150ms, box-shadow 150ms, transform 150ms;
}

.sketch-card:hover {
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(111, 8, 36, 0.22), transparent 58%),
        var(--surface-2);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.sketch-card img,
.no-image {
    background: #0d0a0b;
}

.no-image {
    color: #776b6d;
}

.sketch-info {
    border-top: 1px solid var(--line-soft);
}

.sketch-info h2 {
    font-size: 22px;
}

.sketch-info p {
    color: var(--muted);
    font-size: 12px;
}

.sketch-info strong {
    color: #cfc2be;
    font-weight: 500;
}

.pagination {
    color: var(--muted);
}

.pagination a,
.pagination span {
    border: 1px solid var(--line);
    border-radius: 0;
    color: #d8c8c6;
    background: var(--surface);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
    background: #b9975f;
}

/* Детальная карточка. */
.back-link {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.back-link:hover {
    color: var(--accent);
}

.card {
    position: relative;
    padding: clamp(22px, 4vw, 38px);
}

.details {
    gap: 1px;
    border: 1px solid var(--line-soft);
    background: var(--line-soft);
}

.detail {
    padding: 16px;
    border: 0;
    border-radius: 0;
    color: #d8cfcc;
    background:
        linear-gradient(135deg, rgba(111, 8, 36, 0.09), transparent 70%),
        var(--surface-2);
}

html:not([data-theme="light"]) .detail:nth-child(even) {
    background:
        linear-gradient(135deg, rgba(111, 8, 36, 0.2), transparent 72%),
        #181014;
}

.detail-label {
    color: #897d7f;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.images {
    gap: 1px;
    padding: 1px;
    border: 1px solid var(--line-soft);
    background: var(--line-soft);
}

.image-button {
    border-radius: 0;
    background: #0d0a0b;
}

.image-button img {
    border-radius: 0;
}

.no-images {
    border: 1px solid var(--line-soft);
    border-radius: 0;
    color: var(--muted);
    background: var(--surface-2);
}

.image-dialog {
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(10, 8, 9, 0.98);
}

.close-dialog,
.navigation-button {
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    background: rgba(17, 13, 15, 0.88);
}

/* Переключатель темы повторяет videoproject. */
.theme-switch {
    position: fixed;
    z-index: 90;
    top: 18px;
    right: 22px;
    display: inline-flex;
    min-height: 34px;
    padding: 5px 8px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background:
        linear-gradient(90deg, rgba(111, 8, 36, 0.28), transparent),
        rgba(17, 13, 15, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
    cursor: pointer;
}

.theme-switch:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.theme-switch__icon {
    width: 14px;
    color: #766b6b;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.theme-switch__icon--moon {
    color: var(--accent);
}

.theme-switch__track {
    position: relative;
    width: 40px;
    height: 22px;
    flex: 0 0 auto;
    border: 1px solid #4a393d;
    border-radius: 999px;
    background: #20171a;
}

.theme-switch__track i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(18px);
    transition: transform 180ms ease, background 180ms ease;
}

html[data-theme="light"] {
    --bg: #f6f1eb;
    --surface: #fffdf9;
    --surface-2: #f1ebe4;
    --surface-3: #e9e0d8;
    --line: #d8ccc4;
    --line-soft: #e8dfd8;
    --text: #201a1a;
    --muted: #776c6c;
    --accent: #9a7437;
    --accent-hover: #ae8749;
    --accent-ink: #fffdf9;
    --accent-soft: rgba(154, 116, 55, 0.12);
    --burgundy: #711126;
    --burgundy-deep: #f4e9e4;
    --burgundy-line: #d8bfc3;
    --burgundy-soft: rgba(111, 8, 36, 0.07);
    --green: #39765a;
    --red: #a23f4a;
    --red-soft: rgba(111, 8, 36, 0.06);
    --color-label: #625755;
    --color-error: #8d2c3f;
    color-scheme: light;
}

html[data-theme="light"] body.artist-page {
    background:
        linear-gradient(118deg, rgba(111, 8, 36, 0.035), transparent 34rem),
        radial-gradient(circle at 100% 0%, rgba(199, 165, 106, 0.13), transparent 36rem),
        var(--bg);
}

html[data-theme="light"] body.artist-page--center .container,
html[data-theme="light"] body.artist-page--form form,
html[data-theme="light"] .card,
html[data-theme="light"] .sketch-card,
html[data-theme="light"] .filters {
    border-color: #dfd5cd;
    color: var(--text);
    background: rgba(255, 253, 249, 0.96);
}

html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .select2-container--default .select2-selection--single,
html[data-theme="light"] .select2-container--default .select2-selection--multiple,
html[data-theme="light"] .select2-search--dropdown .select2-search__field {
    border-color: #d6c9c0;
    color: #251e1d;
    background: #fffdf9;
}

html[data-theme="light"] .form-group label,
html[data-theme="light"] .sketch-info strong {
    color: #625755;
}

html[data-theme="light"] .select2-dropdown {
    border-color: #d6c9c0;
    color: #251e1d;
    background: #fffdf9;
}

html[data-theme="light"] .select2-container--default .select2-selection--single .select2-selection__rendered,
html[data-theme="light"] .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: #251e1d;
}

html[data-theme="light"] .select2-container--default .select2-results__option--selected {
    background: #eee6de;
}

html[data-theme="light"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color: #641426;
    background: rgba(199, 165, 106, 0.18);
}

html[data-theme="light"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #704f1f;
}

html[data-theme="light"] .theme-switch {
    border-color: #d4c6bc;
    color: #4c4242;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 10px 30px rgba(63, 42, 35, 0.12);
}

html[data-theme="light"] .theme-switch__icon--sun {
    color: var(--accent);
}

html[data-theme="light"] .theme-switch__icon--moon {
    color: #a99e98;
}

html[data-theme="light"] .theme-switch__track {
    border-color: #cdbfb4;
    background: #e8dfd7;
}

html[data-theme="light"] .theme-switch__track i {
    transform: translateX(0);
}

html[data-theme="light"] .sketch-grid,
html[data-theme="light"] .details,
html[data-theme="light"] .images {
    border-color: #dfd4cc;
    background: #dfd4cc;
}

html[data-theme="light"] .sketch-card:hover {
    background: #fffaf3;
    box-shadow: 0 20px 45px rgba(63, 42, 35, 0.12);
}

html[data-theme="light"] .sketch-card img,
html[data-theme="light"] .no-image,
html[data-theme="light"] .image-button {
    background: #f2ece6;
}

html[data-theme="light"] .sketch-info p,
html[data-theme="light"] .pagination,
html[data-theme="light"] .back-link {
    color: #776c6c;
}

html[data-theme="light"] .detail,
html[data-theme="light"] .no-images {
    color: #342c2a;
    background: #fffdf9;
}

html[data-theme="light"] .pagination a,
html[data-theme="light"] .pagination span,
html[data-theme="light"] .reset-link {
    border-color: #d8ccc4;
    color: #403634;
    background: #fffdf9;
}

html[data-theme="light"] .messages div,
html[data-theme="light"] .message {
    color: #342b29;
    background: #fffdf9;
}

html[data-theme="light"] .message.success {
    color: #285e45;
    background: rgba(57, 118, 90, 0.07);
}

html[data-theme="light"] .message.error,
html[data-theme="light"] .messages div {
    color: #7b1f31;
    background: rgba(111, 8, 36, 0.06);
}

/* Общее меню выбора раздела. */
body.portal-page .portal-card {
    width: min(900px, 100%);
    max-width: 900px;
    text-align: left;
}

.portal-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.portal-intro {
    max-width: 600px;
    margin: -22px 0 32px;
    color: var(--muted);
    line-height: 1.65;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.portal-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 132px;
    padding: 22px;
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(10, 8, 9, 0.42);
    text-decoration: none;
    transition: border-color 160ms, background 160ms, transform 160ms;
}

.portal-option:hover {
    border-color: rgba(199, 165, 106, 0.7);
    background: var(--burgundy-soft);
    transform: translateY(-2px);
}

.portal-option__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--burgundy-line);
    color: var(--accent);
    background: var(--burgundy-deep);
    font-family: "Noto Serif", Georgia, serif;
    font-size: 20px;
}

.portal-option__copy strong,
.portal-option__copy small {
    display: block;
}

.portal-option__copy strong {
    margin-bottom: 7px;
    font-family: "Noto Serif", Georgia, serif;
    font-size: 22px;
    font-weight: 400;
}

.portal-option__copy small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.portal-option__arrow {
    color: var(--accent);
    font-size: 22px;
    transition: transform 160ms;
}

.portal-option:hover .portal-option__arrow {
    transform: translateX(4px);
}

.portal-logout-form {
    margin-top: 26px;
    text-align: center;
}

body.portal-page .portal-logout {
    padding: 8px 12px;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
}

body.portal-page .portal-logout:hover {
    color: var(--text);
}

.portal-back {
    display: inline-block;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.portal-back:hover {
    color: var(--accent);
}

html[data-theme="light"] .portal-option {
    border-color: #d8ccc4;
    background: rgba(255, 253, 249, 0.72);
}

html[data-theme="light"] .portal-option:hover {
    border-color: #b9975f;
    background: #fffaf3;
}

html[data-theme="light"] .portal-option__mark {
    border-color: #d8bfc4;
    background: #f2e2e5;
}

@media (max-width: 720px) {
    body.artist-page {
        padding: 64px 14px 36px;
    }

    body.artist-page--center {
        align-items: flex-start;
    }

    body.artist-page--center .container,
    body.artist-page--form form,
    .card {
        padding: 24px 18px;
    }

    .theme-switch {
        top: 10px;
        right: 12px;
    }

    .filters {
        padding: 14px;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .portal-intro {
        margin-top: -12px;
    }

    .portal-option {
        min-height: 112px;
        padding: 18px;
    }
}

/* Скрытая визуально подпись остаётся доступной для скринридеров. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Страница авторизации портала. */
.auth-body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 18%, rgba(111, 8, 36, 0.22), transparent 30rem),
        #0a0809;
    font-family: "Rubik", Inter, ui-sans-serif, -apple-system, sans-serif;
}

.auth-login {
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(54px, 10vh, 104px) 20px 48px;
    place-items: start center;
}

.auth-login__panel {
    display: flex;
    width: min(430px, 100%);
    padding: 16px 24px 28px;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.auth-login__logo {
    display: block;
    width: clamp(112px, 12vw, 142px);
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(199, 165, 106, 0.12));
}

.auth-login__title {
    margin: 28px 0 24px;
    color: var(--text);
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(20px, 3vw, 25px);
    font-weight: 400;
    letter-spacing: 0.045em;
    line-height: 1.25;
}

.auth-login__form {
    display: grid;
    width: min(330px, 100%);
    gap: 15px;
}

.auth-login__input {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid #3a2c30;
    border-radius: 0;
    outline: none;
    color: var(--text);
    background: #171114;
    font-size: 14px;
    font-weight: 300;
    transition: border-color 160ms, box-shadow 160ms, background 160ms;
}

.auth-login__input::placeholder {
    color: #95898a;
    opacity: 1;
}

.auth-login__input:focus {
    border-color: rgba(199, 165, 106, 0.88);
    background: #1c1417;
    box-shadow: 0 0 0 3px rgba(199, 165, 106, 0.12);
}

.auth-login__submit {
    width: min(194px, 72%);
    min-height: 49px;
    margin: 25px auto 0;
    padding: 11px 24px;
    border: 1px solid rgba(199, 165, 106, 0.55);
    border-radius: 0;
    color: #f4dfb8;
    background: #6f0824;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    transition: transform 160ms, border-color 160ms, background 160ms;
}

.auth-login__submit:hover {
    border-color: #c7a56a;
    background: #85102f;
    transform: translateY(-1px);
}

.auth-login__submit:focus-visible {
    outline: 2px solid #c7a56a;
    outline-offset: 3px;
}

.auth-login__alert {
    padding: 10px 12px;
    border: 1px solid rgba(216, 102, 114, 0.45);
    color: #efb9be;
    background: rgba(111, 8, 36, 0.18);
    font-size: 12px;
    line-height: 1.4;
}

html[data-theme="light"] .auth-body {
    background:
        radial-gradient(circle at 50% 16%, rgba(199, 165, 106, 0.08), transparent 29rem),
        #fbfaf8;
}

html[data-theme="light"] .auth-login__title {
    color: #25201f;
}

html[data-theme="light"] .auth-login__input {
    border-color: #ddd5ce;
    color: #2e2827;
    background: #ebe7e3;
}

html[data-theme="light"] .auth-login__input::placeholder {
    color: #6d6562;
}

html[data-theme="light"] .auth-login__input:focus {
    border-color: rgba(154, 116, 55, 0.78);
    background: #f2efec;
    box-shadow: 0 0 0 3px rgba(154, 116, 55, 0.1);
}

html[data-theme="light"] .auth-login__submit {
    border-color: #6f0824;
    color: #ffffff;
    background: #6f0824;
}

html[data-theme="light"] .auth-login__submit:hover {
    border-color: #871332;
    background: #871332;
}

html[data-theme="light"] .auth-login__alert {
    border-color: rgba(111, 8, 36, 0.25);
    color: #7b1f31;
    background: rgba(111, 8, 36, 0.06);
}

@media (max-width: 600px) {
    .auth-login {
        padding-top: 72px;
    }

    .auth-login__panel {
        padding-inline: 0;
    }

    .auth-login__logo {
        width: 106px;
    }

    .auth-login__title {
        margin-top: 22px;
        font-size: 19px;
    }
}
