.auth-shell {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: #020617;
    color: #0f172a;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.auth-backdrop,
.auth-veil {
    position: absolute;
    inset: 0;
}

.auth-backdrop {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.auth-veil {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.52) 42%, rgba(2, 6, 23, 0.18) 100%);
}

.auth-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding: 3rem 1.5rem;
}

@media (min-width: 1024px) {
    .auth-panel {
        padding-left: 4rem;
    }
}

.auth-card {
    width: 100%;
    max-width: 26.5rem;
    overflow: visible;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(15, 118, 110, 0.12),
        0 24px 48px -16px rgba(2, 6, 23, 0.55);
}

.auth-card-accent {
    height: 4px;
    border-radius: 1.25rem 1.25rem 0 0;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.auth-card-body {
    padding: 1.75rem 1.75rem 1.5rem;
}

.auth-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: -0.25rem 0 1rem;
}

.auth-wide-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 16.5rem;
    height: auto;
}

.auth-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f172a;
}

.auth-lede {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #64748b;
}

.auth-alert {
    margin: 1rem 0 0;
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
}

.auth-alert-ok {
    background: #f0fdfa;
    color: #115e59;
}

.auth-alert-error {
    background: #fff1f2;
    color: #9f1239;
}

.auth-form {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.5rem;
}

.auth-field {
    display: grid;
    gap: 0.4rem;
}

.auth-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    height: 2.75rem;
    border: 1px solid #d6dee8;
    border-radius: 0.7rem;
    background: #f8fafc;
    padding: 0 0.9rem;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:hover {
    border-color: #94a3b8;
    background: #fff;
}

.auth-input:focus {
    border-color: #0f766e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.auth-error {
    margin: 0;
    font-size: 0.8rem;
    color: #be123c;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
}

.auth-remember input {
    width: 1rem;
    height: 1rem;
    accent-color: #0f766e;
}

.auth-submit {
    display: inline-flex;
    width: 100%;
    height: 2.85rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    border: 0;
    border-radius: 0.7rem;
    background: #0f766e;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 18px -10px rgba(15, 118, 110, 0.9);
    transition: background 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover {
    background: #115e59;
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-sso {
    margin-top: 1.35rem;
}

.auth-divider {
    margin: 1.15rem 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.auth-footer {
    margin: 1.25rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-link {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    color: #115e59;
    text-decoration: underline;
}

.auth-muted-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    border: 0;
    background: transparent;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
}

.brand-frame--compact {
    width: auto;
    max-width: 16.5rem;
    margin-bottom: 0;
}

.brand-frame--compact .brand-logo {
    width: auto;
    max-height: 2.75rem;
}

.auth-wide {
    position: relative;
    z-index: 1;
    width: min(72rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0 3rem;
}

.auth-wide-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.auth-wide-card {
    overflow: hidden;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 1.75rem;
    box-shadow:
        0 0 0 1px rgba(15, 118, 110, 0.12),
        0 24px 48px -16px rgba(2, 6, 23, 0.55);
}

.auth-link--light {
    color: #fff;
}

.auth-link--light:hover {
    color: #ccfbf1;
}

.auth-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #d6dee8;
    border-radius: 0.85rem;
    background: #f8fafc;
    cursor: pointer;
}

.auth-choice.is-selected,
.auth-choice:has(input:checked) {
    border-color: #0f766e;
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.auth-choice-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: #64748b;
}

.auth-actions {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.25rem;
}

.page-help {
    margin-top: 1.15rem;
    overflow: hidden;
    border: 1px solid #d7e3ec;
    border-radius: 0.75rem;
    background: #f4f8fb;
}

.page-help > summary.page-help-toggle {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0.55rem;
    list-style: none !important;
    cursor: pointer;
    user-select: none;
    padding: 0.65rem 0.8rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f4c5c;
}

.page-help > summary.page-help-toggle::-webkit-details-marker,
.page-help > summary.page-help-toggle::marker {
    display: none !important;
    content: none !important;
}

.page-help-icon {
    display: flex;
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 1.05rem;
    color: #0f766e;
}

.page-help-icon svg {
    width: 100%;
    height: 100%;
}

.page-help-title {
    flex: 0 0 auto;
}

.page-help-hint {
    display: none;
}

.page-help-chevron {
    display: block;
    width: 0.38rem;
    height: 0.38rem;
    margin-left: auto;
    flex: 0 0 0.38rem;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    opacity: 0.7;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.page-help[open] > .page-help-toggle .page-help-chevron {
    transform: rotate(-135deg);
}

.page-help-body {
    padding: 0 0.85rem 0.85rem 0.85rem;
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.45;
}

.page-help-body p {
    margin: 0 0 0.45rem;
}

.page-help-heading {
    margin: 0.55rem 0 0.2rem !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f766e;
}

.page-help-heading:first-child {
    margin-top: 0 !important;
}

.page-help-body ul {
    margin: 0 0 0.25rem;
    padding-left: 1rem;
}

.cf-lang {
    position: relative;
    display: inline-block;
    z-index: 80;
}
.cf-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 40px;
    padding: 4px 10px 4px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}
.cf-lang__toggle[aria-expanded="true"] {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}
.cf-lang__current { line-height: 1; }
.cf-lang__chevron { display: flex; color: #64748b; transition: transform .15s ease; }
.cf-lang__toggle[aria-expanded="true"] .cf-lang__chevron { transform: rotate(180deg); }
.cf-flag {
    display: block !important;
    box-sizing: border-box;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    max-width: 22px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 22px;
    box-shadow: inset 0 0 0 1px rgb(15 23 42 / 0.12);
    background: #fff;
}
.cf-flag img {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    object-fit: cover;
}
.cf-lang__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    min-width: 260px;
    max-height: 320px;
    overflow: auto;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgb(15 23 42 / 0.14);
}
.cf-lang__menu[hidden] {
    display: none !important;
}
.cf-lang__menu li { margin: 0; }
.cf-lang__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
}
.cf-lang__option:hover { background: #f8fafc; }
.cf-lang__option.is-selected { background: #eef2ff; }
.cf-lang__meta { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.cf-lang__meta strong { font-size: 14px; font-weight: 650; }
.cf-lang__meta small { font-size: 12px; color: #64748b; font-weight: 400; }
.cf-lang__check { color: #1e3a8a; display: flex; }
.cf-lang--on-dark .cf-lang__toggle {
    background: rgb(255 255 255 / 0.12);
    border-color: rgb(255 255 255 / 0.28);
    color: #fff;
}
.cf-lang--on-dark .cf-lang__chevron { color: #ccfbf1; }
