:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #dbe2ea;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 24px;
}

.brand {
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 700;
}

.nav {
    align-items: center;
    display: flex;
    gap: 16px;
}

.nav a,
.nav button {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
}

.language-switcher {
    margin: 0;
}

.language-switcher label {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
}

.language-switcher select {
    min-height: 34px;
    padding: 6px 8px;
}

.nav a:hover,
.nav button:hover {
    color: var(--primary-dark);
}

.page {
    margin: 0 auto;
    max-width: 1120px;
    padding: 32px 20px;
}

.auth-panel,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
    padding: 24px;
}

.auth-panel {
    margin: 40px auto;
    max-width: 440px;
}

.auth-switch {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    text-align: center;
}

.auth-switch p {
    margin: 0;
}

.narrow {
    max-width: 680px;
}

h1,
h2 {
    margin: 0 0 10px;
}

.muted {
    color: var(--muted);
}

.form {
    display: grid;
    gap: 28px;
    margin-top: 24px;
}

.inline-form {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 20px;
}

.form-grid {
    display: grid;
    column-gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
}

label {
    display: grid;
    gap: 13px;
    font-weight: 700;
}

.label-row {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.info-tip {
    align-items: center;
    background: #ffffff;
    border: 2px solid #6b7280;
    border-radius: 50%;
    color: #374151;
    cursor: help;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    height: 22px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    position: relative;
    vertical-align: middle;
    width: 22px;
    z-index: 3;
}

.info-tip:hover,
.info-tip:focus {
    background: #f9fafb;
    border-color: #374151;
    outline: 0;
}

.floating-tooltip {
    background: #111827;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 260px;
    min-width: 160px;
    padding: 8px 10px;
    pointer-events: none;
    position: fixed;
    white-space: normal;
    width: max-content;
    z-index: 9999;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    font-weight: 400;
    min-height: 54px;
    padding: 11px 12px;
}

select option {
    font-weight: 400;
}

textarea {
    resize: vertical;
}

button {
    background: var(--primary);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 11px 14px;
}

.button-link {
    background: var(--primary);
    border-radius: 6px;
    color: #ffffff;
    display: inline-block;
    font-weight: 700;
    padding: 11px 14px;
}

.button-link.full-width {
    text-align: center;
    width: 100%;
}

.button-link:hover {
    background: var(--primary-dark);
}

.button-link.secondary {
    background: #e5e7eb;
    color: var(--text);
}

.button-link.secondary:hover {
    background: #d1d5db;
}

.share-button {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.share-button span {
    font-size: 17px;
    line-height: 1;
}

button:hover {
    background: var(--primary-dark);
}

button.info-tip,
button.info-tip:hover,
button.info-tip:focus {
    align-items: center;
    background: #ffffff;
    border: 2px solid #6b7280;
    border-radius: 50%;
    color: #374151;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    height: 22px;
    justify-content: center;
    padding: 0;
    width: 22px;
}

button.info-tip:hover,
button.info-tip:focus {
    background: #f9fafb;
    border-color: #374151;
}

.alert {
    background: var(--danger-bg);
    border-radius: 6px;
    color: var(--danger-text);
    margin-top: 16px;
    padding: 12px;
}

.notice {
    background: #dcfce7;
    border-radius: 6px;
    color: #166534;
    margin-top: 16px;
    padding: 12px;
}

.auth-link {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 700;
    justify-self: start;
}

.auth-link:hover {
    text-decoration: underline;
}

.page-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.master-data-heading {
    margin-bottom: 22px;
}

.master-data-heading h1 {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 8px;
}

.master-data-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
}

.master-sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.master-sidebar-title {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.master-sidebar nav {
    display: grid;
    gap: 6px;
}

.master-sidebar a {
    border-radius: 6px;
    color: var(--text);
    font-weight: 600;
    padding: 11px 12px;
    text-decoration: none;
}

.master-sidebar a:hover {
    background: #f1f8f5;
    color: var(--primary-dark);
}

.master-sidebar a.active {
    background: #eef7f4;
    color: var(--primary-dark);
    box-shadow: inset 3px 0 0 var(--primary);
}

.master-data-content {
    min-width: 0;
}

.admin-settings-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
}

.admin-settings-sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.admin-settings-sidebar-title {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.admin-settings-sidebar nav {
    display: grid;
    gap: 6px;
}

.admin-settings-sidebar a {
    border-radius: 6px;
    color: var(--text);
    font-weight: 600;
    padding: 11px 12px;
}

.admin-settings-sidebar a:hover {
    background: #f1f8f5;
    color: var(--primary-dark);
}

.admin-settings-sidebar a.active {
    background: #eef7f4;
    box-shadow: inset 3px 0 0 var(--primary);
    color: var(--primary-dark);
}

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

.admin-user-filters {
    align-items: end;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    margin: 18px 0 20px;
    padding: 14px;
}

.admin-user-filters label {
    gap: 7px;
}

.admin-user-filter-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-user-actions {
    display: grid;
    gap: 8px;
    min-width: 380px;
}

.admin-settings-form {
    max-width: 720px;
}

.admin-settings-form textarea {
    min-height: 150px;
}

.settings-field-note {
    margin: -18px 0 0;
}

.settings-help {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.settings-help p {
    margin: 0;
}

.muted-badge {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #4b5563;
}

.actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.actions form {
    margin: 0;
}

.danger-button {
    background: #b91c1c;
}

.danger-button:hover {
    background: #991b1b;
}

.danger-button.small {
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 10px;
}

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

.details {
    display: grid;
    gap: 10px 16px;
    grid-template-columns: 150px 1fr;
}

.details dt {
    color: var(--muted);
    font-weight: 700;
}

.details dd {
    margin: 0;
}

.score {
    color: var(--primary-dark);
}

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

.check-grid label {
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    font-weight: 400;
    gap: 10px;
    padding: 10px;
}

.check-grid input {
    width: auto;
}

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

.image-groups {
    display: grid;
    gap: 24px;
}

.image-group h3 {
    margin: 0 0 12px;
}

.image-grid figure {
    margin: 0;
}

.image-thumb {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    padding: 0;
    width: 100%;
}

.image-grid img {
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.image-thumb:hover img,
.image-thumb:focus img {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.image-grid figcaption {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.image-lightbox {
    align-items: center;
    background: rgba(15, 23, 42, 0.82);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 10000;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox figure {
    margin: 0;
    max-width: min(1100px, 94vw);
}

.image-lightbox img {
    background: #111827;
    border-radius: 8px;
    display: block;
    max-height: 82vh;
    max-width: 100%;
    object-fit: contain;
}

.image-lightbox figcaption {
    color: #ffffff;
    margin-top: 10px;
    text-align: center;
}

.image-lightbox-close {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-radius: 50%;
    color: #111827;
    display: flex;
    font-size: 28px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: fixed;
    right: 24px;
    top: 24px;
    width: 42px;
}

.share-card-panel {
    background:
        radial-gradient(circle at 18% 78%, rgba(39, 242, 154, 0.18), transparent 30%),
        radial-gradient(circle at 78% 34%, rgba(39, 242, 154, 0.12), transparent 34%),
        #050807;
    border: 1px solid #123b33;
    border-radius: 8px;
    overflow-x: auto;
    padding: 18px;
}

.trade-share-card {
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
    display: block;
    height: auto;
    max-width: 100%;
}

.metrics {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.metrics article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.metrics span {
    color: var(--muted);
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.metrics strong {
    font-size: 26px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 8px;
    text-align: left;
}

.badge {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
}

.table-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.table-form select,
.table-form button {
    min-height: 38px;
    padding: 8px 10px;
}

.checkbox-row {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    font-weight: 400;
}

.checkbox-row input {
    min-height: auto;
}

@media (max-width: 760px) {
    .topbar,
    .nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        padding: 16px 20px;
    }

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

    .form-grid {
        grid-template-columns: 1fr;
    }

    .master-data-layout,
    .admin-settings-layout {
        grid-template-columns: 1fr;
    }

    .admin-user-filters {
        grid-template-columns: 1fr;
    }

    .admin-user-actions {
        min-width: 0;
    }

    .detail-grid,
    .check-grid,
    .image-grid {
        grid-template-columns: 1fr;
    }
}

body.auth-page {
    --auth-bg-main: #070b08;
    --auth-bg-deep: #030503;
    --auth-green-bright: #ceee4b;
    --auth-green-main: #a3ee4b;
    --auth-green-muted: #7ada40;
    --auth-green-deep: #46ce42;
    --auth-text-main: #f4f7ef;
    --auth-text-soft: #d8e2d0;
    --auth-text-muted: #aab4a4;
    background:
        radial-gradient(circle at top left, rgba(70, 206, 66, 0.18), transparent 34rem),
        radial-gradient(circle at 84% 18%, rgba(206, 238, 75, 0.13), transparent 32rem),
        radial-gradient(circle at 52% 82%, rgba(122, 218, 64, 0.12), transparent 26rem),
        linear-gradient(180deg, #080d07 0%, var(--auth-bg-main) 44%, var(--auth-bg-deep) 100%);
    color: var(--auth-text-main);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body.auth-page::before {
    background-image:
        linear-gradient(rgba(163, 238, 75, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(163, 238, 75, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 84%);
    pointer-events: none;
    position: fixed;
    z-index: -2;
}

body.auth-page::after {
    background:
        radial-gradient(circle, rgba(206, 238, 75, 0.16), transparent 60%),
        radial-gradient(circle, rgba(70, 206, 66, 0.14), transparent 62%);
    content: "";
    filter: blur(52px);
    height: 30rem;
    left: 50%;
    pointer-events: none;
    position: fixed;
    top: 44%;
    transform: translate(-50%, -50%);
    width: min(42rem, 90vw);
    z-index: -3;
}

body.auth-page .topbar {
    display: none;
}

body.auth-page .page {
    align-items: center;
    display: flex;
    justify-content: center;
    max-width: none;
    min-height: 100vh;
    padding: 34px 18px;
}

body.auth-page .auth-panel {
    background:
        radial-gradient(circle at 70% 0%, rgba(206, 238, 75, 0.12), transparent 34%),
        radial-gradient(circle at 8% 96%, rgba(70, 206, 66, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(17, 25, 18, 0.9), rgba(4, 8, 7, 0.94));
    border: 1px solid rgba(163, 238, 75, 0.42);
    border-radius: 28px;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.48),
        0 0 48px rgba(163, 238, 75, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    margin: 0 auto;
    max-width: 492px;
    overflow: hidden;
    padding: 31px 48px 48px;
    position: relative;
    width: min(100%, 492px);
}

body.auth-page .auth-panel::before {
    background:
        linear-gradient(90deg, transparent, rgba(206, 238, 75, 0.62), transparent),
        rgba(163, 238, 75, 0.12);
    content: "";
    height: 1px;
    left: 48px;
    position: absolute;
    right: 48px;
    top: calc(100% - 174px);
}

body.auth-page .auth-brand-row {
    align-items: center;
    display: flex;
    gap: 14px;
    margin: 0 0 58px;
}

body.auth-page .auth-brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--auth-green-bright), var(--auth-green-deep));
    border-radius: 13px;
    box-shadow: 0 0 28px rgba(163, 238, 75, 0.28);
    color: #071006;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    letter-spacing: -0.04em;
    width: 44px;
}

body.auth-page .auth-brand-text {
    color: var(--auth-text-main);
    font-size: 19px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

body.auth-page .auth-panel h1 {
    color: var(--auth-text-main);
    font-size: 52px;
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 0 0 12px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.38);
}

body.auth-page .auth-panel > .muted {
    color: var(--auth-text-muted);
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 32px;
}

body.auth-page .form {
    gap: 25px;
    margin-top: 0;
}

body.auth-page label {
    color: var(--auth-text-main);
    gap: 13px;
    font-size: 17px;
    font-weight: 800;
}

body.auth-page .auth-input-shell {
    align-items: center;
    background: rgba(3, 7, 7, 0.66);
    border: 1px solid rgba(163, 238, 75, 0.5);
    border-radius: 8px;
    box-shadow:
        0 0 22px rgba(163, 238, 75, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 0 10px 0 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.auth-page .auth-input-shell:focus-within {
    background: rgba(3, 8, 7, 0.82);
    border-color: rgba(206, 238, 75, 0.9);
    box-shadow:
        0 0 28px rgba(163, 238, 75, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.auth-page .auth-input-icon {
    color: var(--auth-green-main);
    display: grid;
    place-items: center;
}

body.auth-page .auth-input-shell input {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--auth-text-main);
    min-height: 52px;
    padding: 0 8px;
    width: 100%;
}

body.auth-page .auth-input-shell input:focus {
    outline: 0;
}

body.auth-page input:-webkit-autofill,
body.auth-page input:-webkit-autofill:hover,
body.auth-page input:-webkit-autofill:focus,
body.auth-page input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(3, 7, 7, 0.96) inset !important;
    -webkit-text-fill-color: var(--auth-text-main) !important;
    caret-color: var(--auth-text-main);
    transition: background-color 9999s ease-in-out 0s;
}

body.auth-page .auth-input-shell input:-webkit-autofill,
body.auth-page .auth-input-shell input:-webkit-autofill:hover,
body.auth-page .auth-input-shell input:-webkit-autofill:focus,
body.auth-page .auth-input-shell input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(3, 7, 7, 0.74) inset !important;
}

body.auth-page .auth-panel label > input:not([type="hidden"]) {
    background: rgba(3, 7, 7, 0.66);
    border: 1px solid rgba(163, 238, 75, 0.5);
    border-radius: 8px;
    box-shadow:
        0 0 22px rgba(163, 238, 75, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    color: var(--auth-text-main);
    min-height: 54px;
}

body.auth-page .auth-panel label > input:not([type="hidden"]):focus {
    border-color: rgba(206, 238, 75, 0.9);
    box-shadow:
        0 0 28px rgba(163, 238, 75, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    outline: 0;
}

body.auth-page .auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--auth-green-main);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

body.auth-page .auth-password-toggle:hover,
body.auth-page .auth-password-toggle:focus {
    background: transparent;
    color: var(--auth-green-bright);
    outline: 0;
}

body.auth-page .auth-link {
    color: var(--auth-green-main);
    font-size: 16px;
    font-weight: 750;
    margin-top: -2px;
}

body.auth-page .auth-link:hover {
    color: var(--auth-green-bright);
}

body.auth-page .auth-primary-button {
    align-items: center;
    background: linear-gradient(135deg, var(--auth-green-bright), var(--auth-green-muted));
    border: 1px solid rgba(206, 238, 75, 0.55);
    border-radius: 8px;
    box-shadow:
        0 0 28px rgba(163, 238, 75, 0.26),
        0 18px 42px rgba(0, 0, 0, 0.34);
    color: #071006;
    display: inline-flex;
    font-size: 19px;
    gap: 16px;
    justify-content: center;
    min-height: 56px;
    padding: 13px 18px;
}

body.auth-page .auth-panel form > button:not(.auth-password-toggle) {
    align-items: center;
    background: linear-gradient(135deg, var(--auth-green-bright), var(--auth-green-muted));
    border: 1px solid rgba(206, 238, 75, 0.55);
    border-radius: 8px;
    box-shadow:
        0 0 28px rgba(163, 238, 75, 0.26),
        0 18px 42px rgba(0, 0, 0, 0.34);
    color: #071006;
    display: inline-flex;
    font-size: 19px;
    gap: 16px;
    justify-content: center;
    min-height: 56px;
    padding: 13px 18px;
}

body.auth-page .auth-panel form > button:not(.auth-password-toggle):hover {
    background: linear-gradient(135deg, #ddf66c, #82e74a);
    box-shadow:
        0 0 34px rgba(206, 238, 75, 0.34),
        0 20px 48px rgba(0, 0, 0, 0.4);
}

body.auth-page .auth-primary-button:hover {
    background: linear-gradient(135deg, #ddf66c, #82e74a);
    box-shadow:
        0 0 34px rgba(206, 238, 75, 0.34),
        0 20px 48px rgba(0, 0, 0, 0.4);
}

body.auth-page .auth-switch {
    border-top: 0;
    gap: 15px;
    margin-top: 43px;
    padding-top: 0;
    position: relative;
}

body.auth-page .auth-switch p {
    color: var(--auth-text-muted);
    font-size: 17px;
}

body.auth-page .button-link.secondary.auth-secondary-button,
body.auth-page .auth-switch .button-link.secondary {
    align-items: center;
    background: rgba(3, 7, 7, 0.58);
    border: 1px solid rgba(163, 238, 75, 0.36);
    border-radius: 8px;
    color: var(--auth-text-main);
    display: inline-flex;
    gap: 13px;
    justify-content: center;
    min-height: 58px;
}

body.auth-page .button-link.secondary.auth-secondary-button:hover,
body.auth-page .auth-switch .button-link.secondary:hover {
    background: rgba(163, 238, 75, 0.08);
    border-color: rgba(206, 238, 75, 0.72);
}

body.auth-page .alert {
    background: rgba(255, 104, 104, 0.13);
    border: 1px solid rgba(255, 104, 104, 0.26);
    color: #ffc9c9;
}

body.auth-page .notice {
    background: rgba(163, 238, 75, 0.12);
    border: 1px solid rgba(163, 238, 75, 0.28);
    color: var(--auth-text-main);
}

body.auth-page .auth-hp {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

body.auth-page .auth-captcha {
    display: grid;
    gap: 8px;
    justify-items: start;
}

body.auth-page .auth-captcha .muted {
    color: var(--auth-text-muted);
    font-size: 13px;
    margin: 0;
}

body.auth-page .g-recaptcha {
    max-width: 100%;
}

@media (max-width: 560px) {
    body.auth-page .page {
        align-items: stretch;
        padding: 12px;
    }

    body.auth-page .auth-panel {
        border-radius: 22px;
        min-height: calc(100vh - 24px);
        padding: 28px 24px 34px;
    }

    body.auth-page .auth-panel::before {
        left: 24px;
        right: 24px;
        top: calc(100% - 160px);
    }

    body.auth-page .auth-brand-row {
        margin-bottom: 48px;
    }

    body.auth-page .auth-brand-text {
        font-size: 16px;
    }

    body.auth-page .auth-panel h1 {
        font-size: 45px;
    }

    body.auth-page .auth-panel > .muted {
        font-size: 16px;
    }
}

.master-data-content table input,
.master-data-content table textarea {
    margin: 0;
    min-width: 180px;
    width: 100%;
}

.master-data-content table textarea {
    min-height: 42px;
    resize: vertical;
}

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

.inline-actions form {
    margin: 0;
}

.inline-actions button {
    margin: 0;
    white-space: nowrap;
}
