/* ── WB Auth Page ── */

.wb-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: var(--wb-nav-h);
}

/* ── Card (left col) ── */
.wb-auth-card {
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
    background: var(--wb-bg);
    overflow-y: auto;
}
.wb-auth-card__logo {
    display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 36px;
}
.wb-auth-card__logo-img  { height: 40px; width: 40px; object-fit: contain; }
.wb-auth-card__logo-mark {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--wb-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--wb-font-serif); font-size: 18px; font-weight: 700;
}
.wb-auth-card__logo-name { font-family: var(--wb-font-serif); font-size: 16px; font-weight: 700; color: var(--wb-text); display: block; line-height: 1.1; }
.wb-auth-card__logo-sub  { font-family: var(--wb-font-serif); font-size: 12px; color: var(--wb-accent); letter-spacing: .12em; text-transform: uppercase; display: block; }

/* ── Tabs ── */
.wb-auth__tabs {
    display: flex; gap: 0; margin-bottom: 28px;
    background: var(--wb-muted); border-radius: 10px; padding: 4px;
    width: fit-content;
}
.wb-auth__tab {
    background: none; border: none; border-radius: 7px;
    padding: 10px 28px; font-family: var(--wb-font-sans); font-size: 14px; font-weight: 500;
    color: var(--wb-text-muted); cursor: pointer; transition: all .2s;
}
.wb-auth__tab.is-active { background: var(--wb-card); color: var(--wb-text); font-weight: 600; box-shadow: 0 1px 6px rgba(0,0,0,.08); }

/* ── Panels ── */
.wb-auth__panel      { display: none; }
.wb-auth__panel.is-active { display: block; }
.wb-auth__subtitle   { font-size: 14px; color: var(--wb-text-muted); margin: 0 0 24px; line-height: 1.5; }

/* ── Fields ── */
.wb-auth__field      { margin-bottom: 18px; }
.wb-auth__label      { display: block; font-size: 12px; font-weight: 700; color: var(--wb-text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.wb-auth__input {
    width: 100%; background: var(--wb-card); border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius-sm); padding: 12px 14px;
    font-family: var(--wb-font-sans); font-size: 14px; color: var(--wb-text);
    outline: none; transition: border-color .2s; box-sizing: border-box;
}
.wb-auth__input:focus { border-color: var(--wb-accent); box-shadow: 0 0 0 3px var(--wb-accent)18; }
.wb-auth__input::placeholder { color: var(--wb-text-muted); opacity: .7; }

/* Password field */
.wb-auth__pw-wrap    { position: relative; }
.wb-auth__pw-wrap .wb-auth__input { padding-right: 56px; }
.wb-auth__pw-toggle  {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; font-size: 12px; color: var(--wb-text-muted);
    cursor: pointer; font-weight: 600; padding: 4px;
}
.wb-auth__pw-toggle:hover { color: var(--wb-accent); }

/* Password strength */
.wb-auth__pw-strength { height: 3px; background: var(--wb-border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.wb-auth__pw-strength-bar { height: 100%; width: 0; border-radius: 2px; transition: all .3s; }
.wb-auth__pw-strength-label { font-size: 11px; font-weight: 600; display: block; margin-top: 4px; min-height: 16px; }

/* Row */
.wb-auth__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.wb-auth__row--fields { gap: 14px; }
.wb-auth__row--fields .wb-auth__field { flex: 1; margin-bottom: 0; }
.wb-auth__check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wb-text-muted); cursor: pointer; }
.wb-auth__check-label input { accent-color: var(--wb-accent); }
.wb-auth__link { font-size: 13px; color: var(--wb-accent); text-decoration: none; font-weight: 500; }
.wb-auth__link:hover { text-decoration: underline; }

/* Submit */
.wb-auth__submit {
    width: 100%; background: var(--wb-accent); border: none; border-radius: var(--wb-radius-sm);
    padding: 14px; font-family: var(--wb-font-sans); font-size: 15px; font-weight: 600;
    color: #fff; cursor: pointer; transition: all .2s; margin-top: 4px;
    box-shadow: 0 4px 16px var(--wb-accent)33;
}
.wb-auth__submit:hover  { background: var(--wb-accent-dark); transform: translateY(-1px); }
.wb-auth__submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Messages */
.wb-auth__msg { font-size: 13px; font-weight: 500; margin-top: 10px; min-height: 20px; display: block; }
.wb-auth__msg.success { color: var(--wb-green); }
.wb-auth__msg.error   { color: var(--wb-red); }

/* Switch / terms */
.wb-auth__switch { font-size: 13px; color: var(--wb-text-muted); text-align: center; margin-top: 24px; }
.wb-auth__terms  { font-size: 12px; color: var(--wb-text-muted); text-align: center; margin-top: 12px; }

/* ── Role cards ── */
.wb-auth__roles {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px;
}
.wb-auth__role-card {
    border: 2px solid var(--wb-border); border-radius: var(--wb-radius-sm);
    padding: 14px 10px; text-align: center; cursor: pointer; transition: all .2s;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.wb-auth__role-card:hover  { border-color: var(--wb-accent)88; background: var(--wb-muted); }
.wb-auth__role-card.is-selected { border-color: var(--wb-accent); background: var(--wb-accent)0d; box-shadow: 0 0 0 3px var(--wb-accent)1a; }
.wb-auth__role-icon  { font-size: 24px; }
.wb-auth__role-title { font-size: 12px; font-weight: 700; color: var(--wb-text); }
.wb-auth__role-desc  { font-size: 11px; color: var(--wb-text-muted); line-height: 1.3; }

/* ── Visual (right col) ── */
.wb-auth-visual {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - var(--wb-nav-h));
}
.wb-auth-visual__bg {
    position: absolute; inset: 0;
    background: linear-gradient(150deg, #1A2E40 0%, #1E3020 45%, #3D2510 100%);
}
.wb-dark .wb-auth-visual__bg { background: linear-gradient(150deg, #0C1A28 0%, #162212 45%, #281800 100%); }
/* Orb decoration */
.wb-auth-visual__bg::after {
    content: '';
    position: absolute; top: 10%; right: 5%; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,165,109,.25) 0%, transparent 70%);
    filter: blur(40px);
}
.wb-auth-visual__content { position: relative; z-index: 2; padding: 40px; max-width: 380px; }
.wb-auth-visual__eyebrow { font-size: 11px; font-weight: 700; color: var(--wb-accent); letter-spacing: .25em; text-transform: uppercase; margin-bottom: 18px; }
.wb-auth-visual__title   { font-family: var(--wb-font-serif); font-size: clamp(38px, 4.5vw, 58px); font-weight: 700; color: #fff; line-height: 1.1; margin: 0 0 36px; }
.wb-auth-visual__title em { color: var(--wb-accent); font-style: italic; }
.wb-auth-visual__stats   { display: flex; gap: 28px; }
.wb-auth-visual__stat    { text-align: center; }
.wb-auth-visual__stat-num   { display: block; font-family: var(--wb-font-serif); font-size: 36px; font-weight: 700; color: #fff; line-height: 1; }
.wb-auth-visual__stat-label { display: block; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .wb-auth-page { grid-template-columns: 1fr; }
    .wb-auth-visual { display: none; }
    .wb-auth-card  { padding: 32px 24px; }
}
@media (max-width: 480px) {
    .wb-auth__roles { grid-template-columns: 1fr; }
    .wb-auth__row--fields { flex-direction: column; }
}
