:root {
    --auth-bg: #120f0d;
    --auth-bg-soft: #1a1512;
    --auth-form-bg: #1a1512;
    --auth-menu-bg: #17110e;
    --auth-card: rgba(28, 22, 19, 0.92);
    --auth-card-border: rgba(255, 255, 255, 0.08);
    --auth-copy: rgba(255, 247, 242, 0.88);
    --auth-muted: rgba(255, 239, 231, 0.62);
    --auth-input: rgba(255, 255, 255, 0.04);
    --auth-input-border: rgba(255, 255, 255, 0.12);
    --auth-accent: var(--terracotta, #C07A65);
    --auth-accent-strong: var(--terracotta-dark, #A66350);
    --auth-accent-soft: rgba(192, 122, 101, 0.18);
    --auth-success-bg: rgba(65, 124, 89, 0.18);
    --auth-success-border: rgba(122, 196, 147, 0.34);
    --auth-success-text: #dff6e6;
    --auth-error-bg: rgba(155, 61, 61, 0.22);
    --auth-error-border: rgba(235, 135, 135, 0.36);
    --auth-error-text: #ffe3e0;
    --auth-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

html,
body {
    min-height: 100%;
}

body.auth-portal {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    box-sizing: border-box;
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(192, 122, 101, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(192, 122, 101, 0.14), transparent 28%),
        linear-gradient(135deg, #120f0d 0%, #171210 45%, #0f0c0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
}

body.auth-portal *,
body.auth-portal *::before,
body.auth-portal *::after {
    box-sizing: border-box;
}

body.auth-portal img {
    opacity: 1;
}

body.auth-portal :is(input, select, textarea, button) {
    color-scheme: dark;
}

body.auth-portal :is(input, select, textarea, button) {
    accent-color: var(--auth-accent);
}

body.auth-portal :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.auth-portal :is(.auth-input, .auth-select, .auth-country-button, .auth-country-search) {
    appearance: none;
    -webkit-appearance: none;
    background: var(--auth-form-bg);
    background-color: var(--auth-form-bg) !important;
    background-image: none;
    color: #fff7f2 !important;
    caret-color: #fff7f2;
    border-color: var(--auth-input-border);
}

body.auth-portal select,
body.auth-portal select option,
body.auth-portal select optgroup,
body.auth-portal datalist,
body.auth-portal datalist option {
    background: var(--auth-menu-bg) !important;
    background-color: var(--auth-menu-bg) !important;
    color: #fff7f2 !important;
}

body.auth-portal ::selection {
    background: rgba(192, 122, 101, 0.48);
    color: #fffaf7;
}

body.auth-portal :is(input, textarea):-webkit-autofill,
body.auth-portal :is(input, textarea):-webkit-autofill:hover,
body.auth-portal :is(input, textarea):-webkit-autofill:focus,
body.auth-portal :is(input, textarea):-webkit-autofill:active {
    -webkit-text-fill-color: #fff7f2;
    caret-color: #fff7f2;
    box-shadow: 0 0 0 1000px var(--auth-form-bg) inset;
    transition: background-color 9999s ease-in-out 0s;
}

body.auth-portal input[type="date"]::-webkit-calendar-picker-indicator,
body.auth-portal input[type="search"]::-webkit-search-cancel-button {
    filter: invert(1) sepia(0.2) saturate(0.7);
    opacity: 0.78;
}

.auth-ambient-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(192, 122, 101, 0.12), transparent 25%),
        radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.04), transparent 20%),
        radial-gradient(circle at 76% 72%, rgba(192, 122, 101, 0.08), transparent 24%);
}

.auth-modal-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: auto 0;
}

.auth-modal-frame {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
    min-height: min(720px, calc(100vh - 48px));
    min-height: min(720px, calc(100svh - 48px));
    background: linear-gradient(180deg, rgba(31, 24, 21, 0.96), rgba(21, 17, 14, 0.96));
    border: 1px solid var(--auth-card-border);
    border-radius: 30px;
    box-shadow: var(--auth-shadow);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.auth-modal-utility {
    position: absolute;
    top: 18px;
    left: 42px;
    right: 90px;
    z-index: 4;
    min-height: 42px;
    display: flex;
    align-items: center;
    color: #fff;
    pointer-events: none;
}

.auth-modal-utility > * {
    pointer-events: auto;
}

.auth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: rgba(16, 14, 12, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.auth-modal-close:hover,
.auth-modal-close:focus-visible {
    transform: translateY(-1px);
    background: rgba(192, 122, 101, 0.22);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

html.auth-country-open .auth-modal-close {
    opacity: 0;
    pointer-events: none;
}

html.auth-language-open .auth-modal-close {
    opacity: 0;
    pointer-events: none;
}

.auth-panel {
    position: relative;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    min-height: 0;
    overflow: visible;
}

.auth-panel.has-utility {
    padding-top: 74px;
}

.auth-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
        radial-gradient(circle at top left, rgba(192, 122, 101, 0.08), transparent 38%);
    pointer-events: none;
}

.auth-panel-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    margin: 0;
}

.auth-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    padding-top: 6px;
}

.auth-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    min-width: 0;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.auth-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-brand-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth-brand-name {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--auth-accent-soft);
    color: #f9d7ce;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 8px 52px 0 0;
    flex: 0 0 auto;
}

.auth-language-selector {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin: 0;
    z-index: 5;
}

.auth-language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 78px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: #fff7f2;
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.auth-language-toggle:hover,
.auth-language-toggle:focus-visible,
.auth-language-selector.is-open .auth-language-toggle {
    background: rgba(192, 122, 101, 0.18);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
    outline: none;
}

.auth-language-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(192, 122, 101, 0.22);
}

.auth-language-toggle img,
.auth-language-option img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.auth-language-code {
    min-width: 1.35rem;
    text-align: left;
}

.auth-language-toggle i {
    font-size: 0.7rem;
    opacity: 0.74;
}

.auth-language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    width: min(230px, calc(100vw - 56px));
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(23, 17, 14, 0.98);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
}

.auth-language-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 9px;
    border-radius: 12px;
    color: rgba(255, 247, 242, 0.82);
    font-size: 0.86rem;
    line-height: 1.2;
    text-decoration: none;
}

.auth-language-option:hover,
.auth-language-option:focus-visible,
.auth-language-option.is-active {
    background: rgba(192, 122, 101, 0.18);
    color: #fff9f6;
    outline: none;
}

.auth-language-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-language-option i {
    color: #f3c879;
    font-size: 0.92rem;
}

.auth-heading {
    margin: 0;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(1.95rem, 3.4vw, 3rem);
    line-height: 1;
    letter-spacing: 0;
    color: #fff9f6;
    min-width: 0;
}

.auth-subheading {
    margin: 16px 0 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--auth-copy);
    max-width: 42ch;
}

.auth-form-area {
    margin-top: 22px;
}

.auth-form-intro {
    margin: 0 0 18px;
    color: var(--auth-muted);
    font-size: 0.94rem;
}

.auth-alert {
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 0.94rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.auth-alert--error {
    background: var(--auth-error-bg);
    border-color: var(--auth-error-border);
    color: var(--auth-error-text);
}

.auth-alert--success {
    background: var(--auth-success-bg);
    border-color: var(--auth-success-border);
    color: var(--auth-success-text);
}

.auth-stack {
    display: grid;
    gap: 12px;
}

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

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

.auth-field[hidden] {
    display: none !important;
}

.auth-floating {
    position: relative;
    display: block;
}

.auth-label {
    font-size: 0.87rem;
    font-weight: 600;
    color: #f8eae3;
    letter-spacing: 0.01em;
}

.auth-floating .auth-label {
    position: absolute;
    top: 8px;
    left: 16px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 239, 231, 0.78);
    pointer-events: none;
    transition: color 160ms ease;
}

.auth-input,
.auth-select {
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid var(--auth-input-border);
    background: var(--auth-input);
    background-color: var(--auth-form-bg);
    color: #fff;
    color-scheme: dark;
    font-size: 0.98rem;
    padding: 13px 16px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-input:is(select),
body.auth-portal select,
.auth-input[type="date"],
.auth-input[type="search"],
.auth-select {
    color-scheme: dark;
    background-color: var(--auth-form-bg) !important;
    color: #fff7f2;
}

body.auth-portal select,
body.auth-portal select:focus,
body.auth-portal select:active {
    background: var(--auth-form-bg) !important;
    color: #fff7f2 !important;
    border-color: var(--auth-input-border);
}

body.auth-portal select option,
body.auth-portal select optgroup,
body.auth-portal select option:checked {
    background: #17110e !important;
    color: #fff7f2 !important;
}

.auth-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(0.35) saturate(1.2) hue-rotate(330deg);
    opacity: 0.82;
}

.auth-floating .auth-input {
    min-height: 56px;
    padding: 24px 16px 8px;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.auth-floating .auth-input::placeholder {
    color: transparent;
}

.auth-input:focus,
.auth-select:focus {
    border-color: rgba(192, 122, 101, 0.72);
    box-shadow: 0 0 0 4px rgba(192, 122, 101, 0.15);
    background: #211915;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.06) inset, 0 0 0 1px rgba(192, 122, 101, 0.28);
    border-color: rgba(192, 122, 101, 0.42);
    transition: background-color 9999s ease-in-out 0s;
}

.auth-input:is(select) option,
.auth-input:is(select) optgroup,
body.auth-portal select option,
body.auth-portal select optgroup,
.auth-select option,
.auth-select optgroup {
    color: #fff7f2;
    background-color: #1a1512;
}

.auth-input:is(select) option:checked,
body.auth-portal select option:checked,
.auth-select option:checked {
    color: #fff;
    background: #6e3f32;
}

.auth-country-picker {
    position: relative;
    width: 100%;
}

.auth-country-picker.is-open {
    z-index: 1002;
}

.auth-country-button {
    width: 100%;
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid var(--auth-input-border);
    background: var(--auth-form-bg);
    color: #fff;
    padding: 24px 42px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font: inherit;
    text-align: left;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-country-button:hover,
.auth-country-button:focus-visible,
.auth-country-picker.is-open .auth-country-button {
    border-color: rgba(192, 122, 101, 0.72);
    box-shadow: 0 0 0 4px rgba(192, 122, 101, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.auth-country-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-country-button i {
    flex: 0 0 auto;
    color: rgba(255, 239, 231, 0.72);
}

.auth-country-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    border-radius: 16px;
    border: 1px solid rgba(192, 122, 101, 0.34);
    background: #17110e !important;
    background-color: #17110e !important;
    background-clip: padding-box;
    color: #fff7f2;
    color-scheme: dark;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.54);
    padding: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: min(420px, calc(100vh - 24px));
    isolation: isolate;
    forced-color-adjust: none;
}

.auth-country-menu[hidden] {
    display: none !important;
}

.auth-country-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: #17110e;
}

.auth-country-menu *,
.auth-country-menu *::before,
.auth-country-menu *::after {
    background-color: transparent;
    color-scheme: dark;
}

.auth-country-picker.is-drop-up .auth-country-menu {
    top: auto;
    bottom: calc(100% + 8px);
}

.auth-country-search {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1a1512 !important;
    color: #fff7f2 !important;
    color-scheme: dark;
    caret-color: #fff7f2;
    padding: 10px 12px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
}

.auth-country-search::-webkit-search-decoration,
.auth-country-search::-webkit-search-cancel-button,
.auth-country-search::-webkit-search-results-button,
.auth-country-search::-webkit-search-results-decoration {
    display: none;
}

.auth-country-search::placeholder {
    color: rgba(255, 239, 231, 0.52);
}

.auth-country-search:focus {
    border-color: rgba(192, 122, 101, 0.64);
    box-shadow: 0 0 0 3px rgba(192, 122, 101, 0.12);
}

.auth-country-options {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(320px, 48vh);
    overflow-y: auto;
    margin-top: 8px;
    padding-right: 3px;
    scrollbar-color: rgba(192, 122, 101, 0.72) rgba(255, 255, 255, 0.08);
    background: #17110e !important;
    color: #fff7f2 !important;
    color-scheme: dark;
    forced-color-adjust: none;
}

.auth-country-options::-webkit-scrollbar {
    width: 10px;
}

.auth-country-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.auth-country-options::-webkit-scrollbar-thumb {
    background: rgba(192, 122, 101, 0.72);
    border-radius: 999px;
    border: 2px solid #17110e;
}

.auth-country-option {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #17110e !important;
    color: #fff7f2 !important;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    forced-color-adjust: none;
}

.auth-country-option:hover,
.auth-country-option:focus-visible,
.auth-country-option.is-selected {
    background: rgba(192, 122, 101, 0.24) !important;
    color: #fff !important;
    outline: none;
}

.auth-country-option small {
    flex: 0 0 auto;
    color: rgba(255, 239, 231, 0.56);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.auth-country-option[hidden] {
    display: none;
}

@media (max-width: 640px), (hover: none) and (pointer: coarse) {
    .auth-country-menu,
    .auth-country-picker.is-drop-up .auth-country-menu {
        position: fixed;
        left: calc(12px + env(safe-area-inset-left, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
        top: calc(12px + env(safe-area-inset-top, 0px));
        bottom: auto;
        max-height: min(440px, calc(100dvh - 24px));
        border-radius: 18px;
        background: #17110e !important;
        background-color: #17110e !important;
        z-index: 1000;
    }

    .auth-country-options {
        max-height: min(350px, calc(100dvh - 116px));
    }
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 54px;
}

.auth-password-wrap.auth-floating .auth-input {
    padding-right: 54px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-copy);
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-checkbox input,
.auth-helper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 4px;
    border: 1px solid rgba(255, 239, 231, 0.42);
    background: rgba(26, 21, 18, 0.98);
    accent-color: var(--auth-accent);
    color-scheme: dark;
    flex: 0 0 auto;
    display: inline-grid;
    place-content: center;
}

.auth-checkbox input:checked,
.auth-helper input[type="checkbox"]:checked {
    border-color: rgba(240, 179, 157, 0.95);
    background-color: var(--auth-accent);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7.1 5.8 10 11 4' fill='none' stroke='%23fffaf7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
}

.auth-checkbox input:focus-visible,
.auth-helper input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 122, 101, 0.18);
}

.auth-link,
.auth-inline-links a,
.auth-helper a {
    color: #f0b39d;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 160ms ease, border-color 160ms ease;
}

.auth-link:hover,
.auth-link:focus-visible,
.auth-inline-links a:hover,
.auth-inline-links a:focus-visible,
.auth-helper a:hover,
.auth-helper a:focus-visible {
    color: #ffd8cb;
    border-color: rgba(255, 216, 203, 0.38);
}

.auth-submit,
.auth-provider {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 15px 18px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.auth-submit {
    color: #fffaf7;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-strong) 100%);
    box-shadow: 0 18px 36px rgba(166, 99, 80, 0.26);
}

.auth-submit:hover,
.auth-submit:focus-visible,
.auth-provider:hover,
.auth-provider:focus-visible {
    transform: translateY(-1px);
}

.auth-provider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 100%;
    margin-inline: 0;
}

.auth-provider.auth-provider--ghost {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--auth-muted);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 6px 0 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: rgba(255, 255, 255, 0.08);
}

.auth-helper {
    margin-top: 12px;
    color: var(--auth-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.auth-age-note {
    margin-top: 8px;
    margin-bottom: -8px;
}

.auth-legal-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
    line-height: 1.55;
}

.auth-helper strong {
    color: #fff;
    font-weight: 600;
}

.auth-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    margin-top: 12px;
    color: var(--auth-muted);
    font-size: 0.92rem;
}

.auth-showcase {
    position: relative;
    background: #0c0a08;
    min-height: 100%;
    overflow: hidden;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    height: 156px;
    background: linear-gradient(180deg, rgba(9, 7, 5, 0.82) 0%, rgba(9, 7, 5, 0.5) 48%, rgba(9, 7, 5, 0) 100%);
    pointer-events: none;
}

.auth-showcase-brand {
    position: absolute;
    top: 18px;
    left: 24px;
    z-index: 3;
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    max-width: calc(100% - 96px);
}

.auth-showcase-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    padding: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.auth-showcase-brand .auth-brand-kicker {
    color: rgba(255, 239, 231, 0.74);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.auth-showcase-brand .auth-brand-copy {
    padding-top: 0;
}

.auth-showcase-brand .auth-brand-name {
    color: #fffaf7;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.auth-showcase-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease, transform 700ms ease;
    transform: scale(1.035);
}

.auth-showcase-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.auth-showcase-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-showcase-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 7, 5, 0.16) 0%, rgba(9, 7, 5, 0.48) 52%, rgba(9, 7, 5, 0.84) 100%),
        linear-gradient(90deg, rgba(12, 10, 8, 0.14) 0%, rgba(12, 10, 8, 0) 38%);
}

.auth-showcase-copy {
    position: absolute;
    inset: auto 24px 58px 24px;
    z-index: 1;
    display: grid;
    gap: 9px;
}

.auth-showcase-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 239, 231, 0.76);
}

.auth-showcase-title {
    margin: 0;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 2.5vw, 2.55rem);
    line-height: 1;
    letter-spacing: 0;
}

.auth-showcase-text {
    margin: 0;
    max-width: 42ch;
    color: rgba(255, 245, 239, 0.82);
    font-size: 0.92rem;
    line-height: 1.5;
}

.auth-showcase-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
    color: #d7a18f;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

html[lang^="el"] body.auth-portal,
html[lang^="el"] body.auth-portal input,
html[lang^="el"] body.auth-portal select,
html[lang^="el"] body.auth-portal button,
html[lang^="el"] body.auth-portal textarea,
html[lang^="el"] body.auth-portal .auth-heading,
html[lang^="el"] body.auth-portal .auth-brand-copy,
html[lang^="el"] body.auth-portal .auth-showcase-title,
html[lang^="el"] body.auth-portal .auth-showcase-text,
html[lang^="el"] body.auth-portal .auth-showcase-chips {
    font-family: "Noto Serif", Georgia, serif;
}

.auth-showcase-chip {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    white-space: nowrap;
}

.auth-showcase-chip + .auth-showcase-chip::before {
    content: "/";
    margin: 0 10px 0 8px;
    color: rgba(255, 226, 216, 0.5);
}

.auth-showcase-indicators {
    position: absolute;
    right: 26px;
    bottom: 22px;
    left: 26px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(var(--auth-slide-count, 6), minmax(0, 1fr));
    gap: 10px;
}

.auth-showcase-indicator {
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    padding: 0;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.auth-showcase-indicator.is-active {
    background: linear-gradient(90deg, #f7d1c4 0%, var(--auth-accent) 100%);
    transform: scaleY(1.15);
}

.auth-code-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.auth-code-grid input {
    text-align: center;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding-inline: 0;
}

.auth-recovery-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.auth-recovery-row span {
    color: var(--auth-muted);
    font-weight: 700;
    text-align: center;
}

.auth-code-block {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 0.9rem;
    line-height: 1.65;
    word-break: break-word;
}

.auth-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 6px 0;
}

.auth-qr-wrap img {
    width: 220px;
    height: 220px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #fff;
    padding: 10px;
}

.auth-section-card {
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-section-card + .auth-section-card {
    margin-top: 12px;
}

.auth-section-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff5f1;
}

.auth-section-copy {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 980px) {
    body.auth-portal {
        padding: 16px;
        overflow-y: auto;
        align-items: flex-start;
    }

    .auth-modal-frame {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
        max-height: none;
        overflow: hidden;
    }

    .auth-showcase {
        min-height: 320px;
        order: -1;
    }

    .auth-panel {
        padding: 28px 24px 30px;
        overflow: visible;
    }

    .auth-panel.has-utility {
        padding-top: 70px;
    }

    .auth-panel-inner {
        width: 100%;
    }

    .auth-modal-utility {
        top: 12px;
        left: 24px;
        right: 82px;
    }

    .auth-modal-close {
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 640px) {
    body.auth-portal {
        padding: 10px;
    }

    .auth-modal-frame {
        border-radius: 22px;
    }

    .auth-showcase {
        display: none;
    }

    .auth-header-top {
        margin-bottom: 10px;
    }

    .auth-title-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .auth-eyebrow {
        display: none;
    }

    .auth-language-selector {
        width: auto;
        justify-content: flex-end;
        margin: 0;
    }

    .auth-language-toggle {
        min-width: 76px;
        min-height: 38px;
        padding-inline: 10px;
    }

    .auth-language-menu {
        left: auto;
        right: 0;
        width: min(230px, calc(100vw - 56px));
    }

    .auth-grid-2,
    .auth-row,
    .auth-inline-links,
    .auth-recovery-row {
        grid-template-columns: minmax(0, 1fr);
        display: grid;
    }

    .auth-code-grid {
        gap: 8px;
    }

    .auth-panel {
        padding-inline: 18px;
    }

    .auth-panel.has-utility {
        padding-top: 66px;
    }

    .auth-modal-utility {
        left: 18px;
        right: 74px;
    }

    .auth-heading {
        font-size: 2rem;
    }

}

@media (max-width: 420px) {
    .auth-title-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-language-selector {
        order: -1;
        justify-content: flex-start;
    }

    .auth-language-menu {
        left: 0;
        right: auto;
    }
}

@media (max-height: 820px) and (min-width: 981px) {
    body.auth-portal {
        align-items: flex-start;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .auth-modal-frame {
        min-height: min(660px, calc(100svh - 32px));
        border-radius: 24px;
    }

    .auth-panel {
        padding: 24px 32px;
        gap: 12px;
    }

    .auth-panel.has-utility {
        padding-top: 58px;
    }

    .auth-modal-utility {
        top: 12px;
        left: 36px;
        min-height: 34px;
    }

    .auth-modal-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .auth-header-top {
        margin-bottom: 12px;
    }

    .auth-brand img {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .auth-showcase-brand {
        top: 14px;
        left: 20px;
    }

    .auth-showcase-brand img {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .auth-heading {
        font-size: clamp(1.85rem, 3vw, 2.55rem);
    }

    .auth-subheading {
        margin-top: 12px;
        line-height: 1.55;
    }

    .auth-form-area {
        margin-top: 18px;
    }

    .auth-stack {
        gap: 12px;
    }

    .auth-divider {
        margin: 4px 0 0;
    }

    .auth-input,
    .auth-select,
    .auth-submit,
    .auth-provider {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .auth-floating .auth-input {
        min-height: 52px;
        padding: 22px 14px 7px;
    }

    .auth-helper,
    .auth-inline-links {
        margin-top: 12px;
    }

    .auth-showcase-copy {
        bottom: 48px;
        gap: 8px;
    }

    .auth-showcase-title {
        font-size: clamp(1.65rem, 2.2vw, 2.25rem);
    }
}

@media (max-height: 640px) and (min-width: 981px) {
    .auth-modal-frame {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 36%);
    }
}

@media (min-width: 641px) and (max-width: 980px) {
    .auth-portal--login .auth-login-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}
