/* Core auth — matches dashboard slate / blue language */

.core-auth {
    --core-auth-bg: #f8fbff;
    --core-auth-surface: transparent;
    --core-auth-surface-muted: transparent;
    --core-auth-border: rgba(15, 23, 42, 0.08);
    --core-auth-text: #0f172a;
    --core-auth-muted: #64748b;
    --core-auth-icon: #94a3b8;
    --core-auth-primary: #0d6efd;
    --core-auth-primary-hover: #0b5ed7;
    --core-auth-primary-soft: #eff6ff;
    --core-auth-primary-border: #bfdbfe;
    --core-auth-danger-bg: #fdf0f1;
    --core-auth-danger-border: #f1c0c5;
    --core-auth-danger-text: #842029;
    --core-auth-input-bg: rgba(255, 255, 255, 0.82);
    --core-auth-input-border: #c9d7ea;
    --core-auth-input-focus: #0d6efd;
    --core-auth-panel-gradient: linear-gradient(180deg, #ffffff 0%, #fbfcfe 55%, #f7f9fc 100%);
    --core-auth-brand-gradient: linear-gradient(160deg, #f8fbff 0%, #eaf3ff 42%, #dbeafe 100%);
    --core-auth-brand-text: #0f172a;
    --core-auth-brand-muted: #475569;
    --core-auth-brand-soft: rgba(13, 110, 253, 0.1);
    --core-auth-brand-soft-border: rgba(13, 110, 253, 0.14);
    --core-auth-brand-glow: rgba(59, 130, 246, 0.16);

    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--core-auth-panel-gradient);
    color: var(--core-auth-text);
    overflow: hidden;
}

[data-bs-theme="dark"] .core-auth {
    --core-auth-bg: #121826;
    --core-auth-surface: transparent;
    --core-auth-surface-muted: transparent;
    --core-auth-border: rgba(148, 163, 184, 0.14);
    --core-auth-text: #f1f5f9;
    --core-auth-muted: #94a3b8;
    --core-auth-icon: #64748b;
    --core-auth-primary: #3b82f6;
    --core-auth-primary-hover: #60a5fa;
    --core-auth-primary-soft: rgba(59, 130, 246, 0.12);
    --core-auth-primary-border: rgba(59, 130, 246, 0.35);
    --core-auth-danger-bg: rgba(220, 53, 69, 0.12);
    --core-auth-danger-border: rgba(220, 53, 69, 0.35);
    --core-auth-danger-text: #f1aeb5;
    --core-auth-input-bg: rgba(15, 23, 42, 0.55);
    --core-auth-input-border: #334155;
    --core-auth-input-focus: #6ea8fe;
    --core-auth-panel-gradient: linear-gradient(180deg, #151b2b 0%, #121826 55%, #101622 100%);
    --core-auth-brand-gradient: linear-gradient(160deg, #121826 0%, #172033 48%, #1a2740 100%);
    --core-auth-brand-text: #f8fafc;
    --core-auth-brand-muted: #94a3b8;
    --core-auth-brand-soft: rgba(96, 165, 250, 0.12);
    --core-auth-brand-soft-border: rgba(96, 165, 250, 0.18);
    --core-auth-brand-glow: rgba(59, 130, 246, 0.14);
}

.core-auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    height: 100%;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
    color: var(--core-auth-brand-text);
    background: var(--core-auth-brand-gradient);
    border-right: 1px solid var(--core-auth-brand-soft-border);
}

.core-auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 16% 18%, var(--core-auth-brand-glow) 0, transparent 32%),
        radial-gradient(circle at 84% 78%, rgba(56, 189, 248, 0.14) 0, transparent 34%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48' viewBox='0 0 84 48'%3E%3Cpath fill='none' stroke='rgba(13,110,253,0.08)' stroke-width='1' d='M21 0l21 12v24L21 48 0 36V12L21 0zm42 0l21 12v24L63 48 42 36V12L63 0z'/%3E%3C/svg%3E");
    background-size: auto, auto, 84px 48px;
    pointer-events: none;
}

.core-auth-brand > * {
    position: relative;
    z-index: 1;
}

.core-auth-brand-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.core-auth-brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    padding: 0.45rem;
    border: 1px solid var(--core-auth-brand-soft-border);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.core-auth-brand-name {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.core-auth-brand-name strong {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--core-auth-brand-text);
}

.core-auth-brand-name span {
    font-size: 0.8rem;
    color: var(--core-auth-brand-muted);
}

.core-auth-brand-body {
    max-width: 460px;
    margin: auto 0;
    padding: 2rem 0;
}

.core-auth-brand-body h1 {
    font-size: clamp(1.85rem, 2.8vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 1.1rem;
    color: var(--core-auth-brand-text);
}

.core-auth-brand-body p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--core-auth-brand-muted);
    max-width: 38ch;
}

.core-auth-status {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    max-width: 100%;
    margin-top: auto;
    margin-bottom: 1.25rem;
    padding: 0.65rem 0.95rem 0.65rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(25, 135, 84, 0.16);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .core-auth-status {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(34, 197, 94, 0.22);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.core-auth-status-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    flex-shrink: 0;
    animation: core-auth-pulse 2s ease-out infinite;
}

.core-auth-status-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(34, 197, 94, 0.45);
    animation: core-auth-ring 2s ease-out infinite;
}

.core-auth-status-text {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #166534;
}

[data-bs-theme="dark"] .core-auth-status-text {
    color: #86efac;
}

@keyframes core-auth-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes core-auth-ring {
    0% {
        transform: scale(0.7);
        opacity: 0.9;
    }

    70% {
        transform: scale(1.55);
        opacity: 0;
    }

    100% {
        transform: scale(0.7);
        opacity: 0;
    }
}

.core-auth-brand-footer {
    font-size: 0.78rem;
    color: var(--core-auth-brand-muted);
}

[data-bs-theme="dark"] .core-auth-brand-logo {
    background: #0f172a;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.core-auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* flex-start + margin auto on inner = center when short, top-align when tall */
    justify-content: flex-start;
    min-height: 0;
    height: 100%;
    padding: 4.5rem clamp(1.25rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
    background: var(--core-auth-panel-gradient);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.core-auth-panel-toolbar {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    z-index: 3;
}

.core-auth-panel-inner {
    width: 100%;
    max-width: 400px;
    /* Center vertically when short; stay pinned to top when tall (no clipped header) */
    margin-block: auto;
    flex: 0 0 auto;
    min-width: 0;
}

.core-auth-card {
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.core-auth-card-header {
    margin-bottom: 1.75rem;
    padding-right: 2.5rem; /* keep title clear of theme toggle */
    min-width: 0;
}

.core-auth-card-header h2,
.core-auth-card-header p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.core-auth-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: var(--core-auth-brand-soft);
    border: 1px solid var(--core-auth-brand-soft-border);
    color: var(--core-auth-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.core-auth-card-header h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.55rem, 2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--core-auth-text);
}

.core-auth-card-header p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--core-auth-muted);
}

.core-auth-card-body {
    padding: 0;
}

.core-auth-alert,
.core-auth-success {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 1.15rem;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.45;
}

.core-auth-alert {
    border: 1px solid var(--core-auth-danger-border);
    background: var(--core-auth-danger-bg);
    color: var(--core-auth-danger-text);
}

.core-auth-success {
    border: 1px solid rgba(25, 135, 84, 0.22);
    background: rgba(25, 135, 84, 0.1);
    color: #166534;
}

[data-bs-theme="dark"] .core-auth-success {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.core-auth-alert i,
.core-auth-success i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.core-auth-alert ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.core-auth-field {
    margin-bottom: 1.15rem;
}

.core-auth-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--core-auth-text);
}

.core-auth-input {
    position: relative;
}

.core-auth-input > i:first-child {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    transform: translateY(-50%);
    color: var(--core-auth-icon);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.core-auth-input .form-control {
    height: 48px;
    padding: 0.7rem 2.75rem 0.7rem 2.6rem;
    border-radius: 12px;
    border: 1px solid var(--core-auth-input-border);
    background-color: var(--core-auth-input-bg);
    color: var(--core-auth-text);
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    backdrop-filter: blur(8px);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.core-auth-input .form-control::placeholder {
    color: var(--core-auth-muted);
    opacity: 0.7;
}

.core-auth-input .form-control:hover {
    border-color: #a8bdd8;
}

.core-auth-input .form-control:focus {
    border-color: var(--core-auth-input-focus);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
    background-color: #fff;
    color: var(--core-auth-text);
}

[data-bs-theme="dark"] .core-auth-input .form-control:hover {
    border-color: #475569;
}

[data-bs-theme="dark"] .core-auth-input .form-control:focus {
    background-color: rgba(15, 23, 42, 0.75);
    box-shadow: 0 0 0 4px rgba(110, 168, 254, 0.16);
}

.core-auth-input .form-control.is-invalid {
    border-color: #dc3545;
    padding-right: 2.75rem;
    background-image: none;
}

.core-auth-input .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.12);
}

.core-auth-toggle-password {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--core-auth-icon);
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.core-auth-toggle-password:hover,
.core-auth-toggle-password:focus-visible {
    background: var(--core-auth-brand-soft);
    color: var(--core-auth-text);
    outline: none;
}

.core-auth-field .invalid-feedback {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

.core-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.15rem 0 1.4rem;
    flex-wrap: wrap;
}

.core-auth-row .form-check {
    margin: 0;
    min-height: auto;
    padding-left: 1.6rem;
}

.core-auth-row .form-check-input {
    width: 1.05em;
    height: 1.05em;
    margin-top: 0.15em;
    border-color: var(--core-auth-input-border);
    background-color: var(--core-auth-input-bg);
    cursor: pointer;
}

.core-auth-row .form-check-input:checked {
    background-color: var(--core-auth-primary);
    border-color: var(--core-auth-primary);
}

.core-auth-row .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    border-color: var(--core-auth-input-focus);
}

.core-auth-row .form-check-label {
    font-size: 0.875rem;
    color: var(--core-auth-muted);
    cursor: pointer;
    user-select: none;
}

.core-auth-forgot {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--core-auth-primary);
    text-decoration: none;
}

.core-auth-forgot:hover {
    color: var(--core-auth-primary-hover);
    text-decoration: underline;
}

.core-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 18px rgba(13, 110, 253, 0.22);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.core-auth-submit:hover {
    color: #fff;
    background: var(--core-auth-primary-hover);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 10px 22px rgba(13, 110, 253, 0.28);
    transform: translateY(-1px);
}

.core-auth-submit:active {
    transform: translateY(0);
}

.core-auth-submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.18), 0 8px 18px rgba(13, 110, 253, 0.22);
}

.core-auth-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--core-auth-border);
    font-size: 0.8rem;
    color: var(--core-auth-muted);
}

.core-auth-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--core-auth-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--core-auth-muted);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

[data-bs-theme="dark"] .core-auth-theme-toggle {
    background: rgba(15, 23, 42, 0.45);
}

.core-auth-theme-toggle:hover,
.core-auth-theme-toggle:focus-visible {
    color: var(--core-auth-text);
    border-color: var(--core-auth-primary-border);
    background: var(--core-auth-primary-soft);
    outline: none;
}

.core-auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.core-auth-mobile-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--core-auth-brand-soft-border);
    padding: 0.3rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.core-auth-mobile-brand strong {
    display: block;
    font-size: 1rem;
    color: var(--core-auth-text);
    line-height: 1.2;
}

.core-auth-mobile-brand span {
    font-size: 0.8rem;
    color: var(--core-auth-muted);
}

@media (max-width: 991.98px) {
    .core-auth {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .core-auth-brand {
        display: none;
    }

    .core-auth-mobile-brand {
        display: flex;
    }

    .core-auth-panel {
        min-height: 100vh;
        height: auto;
        padding: 4rem 1.15rem 2rem;
        align-items: stretch;
        justify-content: flex-start;
        overflow: visible;
    }

    .core-auth-panel-inner {
        margin: 0 auto;
    }

    .core-auth-card-header {
        padding-right: 2.75rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .core-auth-brand {
        padding: 2rem 2.25rem;
    }

}

@media (max-width: 419.98px) {
    .core-auth-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Password strength meter */
.core-auth-password-meter {
    margin-top: 0.75rem;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--core-auth-border);
    background: var(--core-auth-primary-soft);
}

.core-auth-password-meter-top {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.core-auth-password-meter-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
    overflow: hidden;
}

.core-auth-password-meter-bar > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #ef4444;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.core-auth-password-meter[data-score="1"] .core-auth-password-meter-bar > span { background: #ef4444; }
.core-auth-password-meter[data-score="2"] .core-auth-password-meter-bar > span { background: #f59e0b; }
.core-auth-password-meter[data-score="3"] .core-auth-password-meter-bar > span { background: #eab308; }
.core-auth-password-meter[data-score="4"] .core-auth-password-meter-bar > span { background: #22c55e; }
.core-auth-password-meter[data-score="5"] .core-auth-password-meter-bar > span { background: #16a34a; }

.core-auth-password-meter-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--core-auth-text);
    letter-spacing: 0.01em;
}

.core-auth-password-meter[data-score="0"] .core-auth-password-meter-label,
.core-auth-password-meter[data-score="1"] .core-auth-password-meter-label { color: #dc2626; }
.core-auth-password-meter[data-score="2"] .core-auth-password-meter-label { color: #d97706; }
.core-auth-password-meter[data-score="3"] .core-auth-password-meter-label { color: #ca8a04; }
.core-auth-password-meter[data-score="4"] .core-auth-password-meter-label,
.core-auth-password-meter[data-score="5"] .core-auth-password-meter-label { color: #16a34a; }

[data-bs-theme="dark"] .core-auth-password-meter[data-score="0"] .core-auth-password-meter-label,
[data-bs-theme="dark"] .core-auth-password-meter[data-score="1"] .core-auth-password-meter-label { color: #f87171; }
[data-bs-theme="dark"] .core-auth-password-meter[data-score="2"] .core-auth-password-meter-label { color: #fbbf24; }
[data-bs-theme="dark"] .core-auth-password-meter[data-score="3"] .core-auth-password-meter-label { color: #facc15; }
[data-bs-theme="dark"] .core-auth-password-meter[data-score="4"] .core-auth-password-meter-label,
[data-bs-theme="dark"] .core-auth-password-meter[data-score="5"] .core-auth-password-meter-label { color: #4ade80; }

.core-auth-password-meter-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.core-auth-password-meter-rules li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--core-auth-muted);
    line-height: 1.3;
}

.core-auth-password-meter-rules li::before {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1.5px solid rgba(148, 163, 184, 0.55);
    background: transparent;
    box-sizing: border-box;
}

.core-auth-password-meter-rules li.is-met {
    color: #15803d;
}

[data-bs-theme="dark"] .core-auth-password-meter-rules li.is-met {
    color: #4ade80;
}

.core-auth-password-meter-rules li.is-met::before {
    border-color: #22c55e;
    background-color: #22c55e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
    background-size: 0.65rem;
    background-repeat: no-repeat;
    background-position: center;
}

/* Wide complete-registration panel */
.core-auth-panel-inner.is-wide {
    max-width: 520px;
}

.core-auth-section {
    margin-bottom: 1.5rem;
    padding-bottom: 0.35rem;
}

.core-auth-section-title {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--core-auth-muted);
}

.core-auth-section-title--inline {
    margin-top: 0.35rem;
}

.core-auth-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.core-auth-textarea {
    width: 100%;
    min-height: 5.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--core-auth-input-border);
    background: var(--core-auth-input-bg);
    color: var(--core-auth-text);
    resize: vertical;
    font-size: 0.95rem;
    line-height: 1.45;
}

.core-auth-textarea:focus {
    outline: none;
    border-color: var(--core-auth-input-focus);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.core-auth-geo {
    display: block;
    margin-bottom: 0.35rem;
}

.core-auth-geo .row {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
}

.core-auth-geo .form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--core-auth-text);
}

.core-auth-geo .form-control,
.core-auth-geo .form-select {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid var(--core-auth-input-border);
    background: var(--core-auth-input-bg);
    color: var(--core-auth-text);
    font-size: 0.95rem;
}

.core-auth-geo .form-control:focus,
.core-auth-geo .form-select:focus {
    border-color: var(--core-auth-input-focus);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.core-auth-geo .input-dropdown {
    position: relative;
}

/* Two-step wizard (complete registration) */
.core-auth-wizard {
    display: block;
}

.core-auth-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
    padding: 0.4rem;
    border-radius: 16px;
    border: 1px solid var(--core-auth-border);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.core-auth-steps--three {
    grid-template-columns: 1fr auto 1fr auto 1fr;
}

.core-auth-avatar-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 0.35rem;
}

.core-auth-avatar-preview {
    width: 112px;
    height: 112px;
    border-radius: 999px;
    overflow: hidden;
    border: 3px solid var(--core-auth-primary-border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    background: var(--core-auth-primary-soft);
}

.core-auth-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.core-auth-avatar-picker .core-auth-field {
    width: 100%;
}

.core-auth-file {
    min-height: 46px;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--core-auth-input-border);
    background: var(--core-auth-input-bg);
    color: var(--core-auth-text);
    font-size: 0.9rem;
}

.core-auth-file:focus {
    border-color: var(--core-auth-input-focus);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    outline: none;
}

[data-bs-theme="dark"] .core-auth-steps {
    background: rgba(15, 23, 42, 0.35);
}

.core-auth-step {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--core-auth-muted);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.core-auth-step:hover {
    background: var(--core-auth-primary-soft);
    color: var(--core-auth-text);
}

.core-auth-step:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
}

.core-auth-step.is-active {
    background: #fff;
    color: var(--core-auth-text);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

[data-bs-theme="dark"] .core-auth-step.is-active {
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.core-auth-step-index {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1.5px solid rgba(148, 163, 184, 0.45);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    color: inherit;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.core-auth-step.is-active .core-auth-step-index {
    border-color: var(--core-auth-primary);
    background: var(--core-auth-primary);
    color: #fff;
}

.core-auth-step.is-done .core-auth-step-index {
    border-color: #22c55e;
    background: #22c55e;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.core-auth-step.is-done .core-auth-step-index::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0.95rem;
    height: 0.95rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.25 8.25l3.1 3.1 6.4-6.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.core-auth-step-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.core-auth-step-copy strong {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: inherit;
}

.core-auth-step-copy small {
    font-size: 0.72rem;
    line-height: 1.2;
    color: var(--core-auth-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.core-auth-step.is-active .core-auth-step-copy small {
    color: var(--core-auth-primary);
}

.core-auth-step-divider {
    width: 18px;
    align-self: center;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.45), rgba(13, 110, 253, 0.35));
}

.core-auth-wizard-panel[hidden] {
    display: none !important;
}

.core-auth-wizard-actions {
    margin-top: 1.35rem;
}

.core-auth-wizard-actions--split {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.6rem;
}

.core-auth-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 48px;
    padding: 0 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--core-auth-input-border);
    background: var(--core-auth-input-bg);
    color: var(--core-auth-text);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.core-auth-secondary:hover,
.core-auth-secondary:focus-visible {
    border-color: var(--core-auth-primary-border);
    background: var(--core-auth-primary-soft);
    color: var(--core-auth-primary);
    outline: none;
}

.core-auth-check {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

.core-auth-check-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--core-auth-primary-soft);
    border: 1px solid var(--core-auth-primary-border);
    color: var(--core-auth-primary);
    font-size: 1.6rem;
}

.core-auth-check-email {
    margin: 0 0 0.65rem;
    color: var(--core-auth-text);
    font-size: 0.95rem;
}

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

.core-auth-inline-form {
    display: inline;
    margin: 0;
}

.core-auth-link-button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 519.98px) {
    .core-auth-steps,
    .core-auth-steps--three {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .core-auth-step-divider {
        display: none;
    }

    .core-auth-fields-grid {
        grid-template-columns: 1fr;
    }

    .core-auth-wizard-actions--split {
        grid-template-columns: 1fr;
    }

    .core-auth-secondary {
        width: 100%;
        order: 2;
    }

    .core-auth-step-copy small {
        display: none;
    }
}

/* Venue select — multi-property picker */

.core-auth-panel-inner.venue-select-panel {
    max-width: min(560px, 100%);
}

.venue-select-search {
    margin-bottom: 0.85rem;
}

.venue-select-search .core-auth-input .form-control {
    height: 42px;
    font-size: 0.9rem;
}

.venue-select-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding: 0.15rem 0.35rem 0.35rem 0.05rem;
    margin: 0 -0.1rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
}

.venue-select-list::-webkit-scrollbar {
    width: 4px;
}

.venue-select-list::-webkit-scrollbar-track {
    background: transparent;
}

.venue-select-list::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 999px;
}

.venue-select-list::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.65);
}

[data-bs-theme="dark"] .venue-select-list {
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

[data-bs-theme="dark"] .venue-select-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
}

[data-bs-theme="dark"] .venue-select-list::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.55);
}

.venue-select-card[hidden] {
    display: none !important;
}

.venue-select-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    border-radius: 0.9rem;
    border: 1px dashed var(--core-auth-border);
    color: var(--core-auth-muted);
    font-size: 0.88rem;
    text-align: center;
}

.venue-select-empty i {
    font-size: 1rem;
    opacity: 0.8;
}

.venue-select-card {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.65rem 0.75rem 0.65rem 0.65rem;
    border-radius: 1rem;
    border: 1px solid var(--core-auth-border);
    background: var(--core-auth-input-bg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        transform 0.16s ease;
}

.venue-select-card:hover {
    border-color: var(--core-auth-primary-border);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.08);
    transform: translateY(-1px);
}

.venue-select-card.is-selected {
    border-color: var(--core-auth-primary);
    background: var(--core-auth-primary-soft);
    box-shadow:
        0 0 0 1px var(--core-auth-primary),
        0 10px 28px rgba(13, 110, 253, 0.12);
}

.venue-select-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.venue-select-media {
    position: relative;
    width: 88px;
    height: 72px;
    border-radius: 0.8rem;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

[data-bs-theme="dark"] .venue-select-media {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(148, 163, 184, 0.12);
}

.venue-select-media-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.01);
    transition: transform 0.25s ease;
}

.venue-select-card:hover .venue-select-media-bg,
.venue-select-card.is-selected .venue-select-media-bg {
    transform: scale(1.06);
}

.venue-select-media.is-empty .venue-select-media-bg {
    opacity: 0.35;
    filter: grayscale(0.2);
}

.venue-select-media-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    color: var(--core-auth-muted);
    z-index: 1;
}

.venue-select-media-fallback i {
    font-size: 1.35rem;
    opacity: 0.85;
}

.venue-select-media-fallback span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.venue-select-check {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--core-auth-primary);
    color: #fff;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.35);
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 2;
}

.venue-select-card.is-selected .venue-select-check {
    opacity: 1;
    transform: scale(1);
}

.venue-select-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.venue-select-name {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--core-auth-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-select-meta {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--core-auth-text);
}

.venue-select-meta i {
    margin-top: 0.12rem;
    flex-shrink: 0;
    color: var(--core-auth-primary);
    opacity: 0.85;
    font-size: 0.78rem;
}

.venue-select-meta span {
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.venue-select-meta--muted {
    color: var(--core-auth-muted);
}

.venue-select-meta--muted i {
    color: var(--core-auth-icon);
}

.venue-select-chevron {
    color: var(--core-auth-icon);
    font-size: 0.95rem;
    transition: color 0.15s ease, transform 0.15s ease;
    padding-right: 0.15rem;
}

.venue-select-card:hover .venue-select-chevron,
.venue-select-card.is-selected .venue-select-chevron {
    color: var(--core-auth-primary);
    transform: translateX(2px);
}

@media (max-width: 519.98px) {
    .venue-select-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.55rem;
    }

    .venue-select-media {
        width: 72px;
        height: 64px;
    }

    .venue-select-chevron {
        display: none;
    }

    .venue-select-list {
        max-height: min(48vh, 360px);
    }
}

/* Pending application review */

.venue-pending {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.venue-pending-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.venue-pending-step {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: flex-start;
    position: relative;
    padding-bottom: 1.15rem;
}

.venue-pending-step:last-child {
    padding-bottom: 0;
}

.venue-pending-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: 2.25rem;
    bottom: 0.1rem;
    width: 2px;
    background: var(--core-auth-border);
}

.venue-pending-step.is-done:not(:last-child)::before {
    background: rgba(13, 110, 253, 0.35);
}

.venue-pending-step.is-active:not(:last-child)::before {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.45), var(--core-auth-border));
}

.venue-pending-step__marker {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--core-auth-primary-soft);
    border: 1px solid var(--core-auth-primary-border);
    color: var(--core-auth-primary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.venue-pending-step.is-done .venue-pending-step__marker {
    background: var(--core-auth-primary);
    border-color: var(--core-auth-primary);
    color: #fff;
}

.venue-pending-step:not(.is-done):not(.is-active) .venue-pending-step__marker {
    background: transparent;
    border-color: var(--core-auth-border);
    color: var(--core-auth-icon);
}

.venue-pending-step strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--core-auth-text);
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.venue-pending-step span {
    display: block;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--core-auth-muted);
}

.venue-pending-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 2px solid var(--core-auth-primary);
    opacity: 0.45;
    animation: venue-pending-pulse 1.8s ease-out infinite;
}

@keyframes venue-pending-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.55;
    }
    70% {
        transform: scale(1.18);
        opacity: 0;
    }
    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

.venue-pending-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.venue-pending-list__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--core-auth-muted);
}

.venue-pending-card {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--core-auth-border);
    background: var(--core-auth-input-bg);
}

.venue-pending-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--core-auth-primary-soft);
    color: var(--core-auth-primary);
    font-size: 1.1rem;
}

.venue-pending-card__body {
    min-width: 0;
}

.venue-pending-card__body strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--core-auth-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-pending-card__body span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--core-auth-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-pending-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    white-space: nowrap;
}

[data-bs-theme="dark"] .venue-pending-badge {
    color: #fdba74;
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.28);
}

.venue-pending-note {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: var(--core-auth-primary-soft);
    border: 1px solid var(--core-auth-primary-border);
    color: var(--core-auth-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.venue-pending-note i {
    margin-top: 0.15rem;
    color: var(--core-auth-primary);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.venue-pending-note p {
    margin: 0;
}

.venue-pending-note strong {
    color: var(--core-auth-text);
}

.venue-pending-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.core-auth-submit--ghost {
    background: transparent;
    color: var(--core-auth-text);
    border: 1px solid var(--core-auth-border);
    box-shadow: none;
}

.core-auth-submit--ghost:hover {
    background: var(--core-auth-primary-soft);
    border-color: var(--core-auth-primary-border);
    color: var(--core-auth-primary);
}


