/* ==========================================================
   Quest Board — Unified Login / Register (glassmorphism)
   ========================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    padding: 24px 0;
}

.qb-auth-card {
    width: min(520px, 92vw);
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 0 60px rgba(0, 0, 0, .35);
    backdrop-filter: blur(18px);
}

.qb-kicker {
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 12px;
}

.qb-auth-card h1 {
    margin: 0 0 8px;
    font-size: 2.2rem;
}

.qb-sub {
    color: rgba(255, 255, 255, .7);
    margin-bottom: 24px;
}

/* ---------- Tabs ---------- */

.qb-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 26px;
}

.qb-tab {
    flex: 1;
    border: 0;
    padding: 11px 14px;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .65);
    font-weight: 900;
    letter-spacing: .5px;
    cursor: pointer;
    font-size: .92rem;
    transition: background .15s ease, color .15s ease;
}

.qb-tab.active {
    background: linear-gradient(90deg, #a8a8a8, #d9d9d9);
    color: #111;
}

.qb-tab:not(.active):hover {
    color: #fff;
}

/* ---------- Form fields ---------- */

.qb-panel label,
.qb-finish-card label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
    font-size: .9rem;
}

.qb-panel input,
.qb-panel select,
.qb-finish-card input,
.qb-finish-card select {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .28);
    color: #fff;
    outline: none;
}

.qb-panel input:focus,
.qb-panel select:focus,
.qb-finish-card input:focus,
.qb-finish-card select:focus {
    border-color: rgba(255, 255, 255, .42);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

.qb-panel option,
.qb-finish-card option {
    color: #111;
}

/* ---------- Register: quest type preview ---------- */

.qb-path-preview {
    margin: 0 0 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.qb-path-preview span {
    display: block;
    font-size: .75rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, .6);
    font-weight: 900;
    margin-bottom: 5px;
}

.qb-path-preview strong {
    font-size: 1.15rem;
}

/* ---------- Checkboxes ---------- */

.qb-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    color: rgba(255, 255, 255, .74);
    font-size: .88rem;
}

.qb-check input {
    width: auto;
    margin-top: 2px;
}

.qb-check a {
    color: #fff;
}

.qb-check-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: .88rem;
    color: rgba(255, 255, 255, .8);
    cursor: pointer;
}

.qb-check-inline input {
    width: auto;
}

.qb-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    font-size: .85rem;
}

.qb-remember-row a {
    color: rgba(255, 255, 255, .75);
}

.qb-remember-row a:hover {
    color: #fff;
}

/* ---------- Error box ---------- */

.qb-error-box {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(220, 38, 38, .18);
    border: 1px solid rgba(248, 113, 113, .35);
    color: #fecaca;
    font-size: .9rem;
    line-height: 1.45;
}

.qb-error-box ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.just-validate-error-label {
    margin-top: 6px;
    color: #fecaca !important;
    font-size: .82rem;
    font-weight: 700;
}

.just-validate-error-field {
    border-color: rgba(248, 113, 113, .8) !important;
}

/* ---------- Honeypot ---------- */

.qb-hidden-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}

/* ---------- Password show/hide ---------- */

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

.qb-password-wrap input {
    padding-right: 104px;
}

.qb-show-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .10);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.qb-show-password:hover {
    filter: brightness(1.15);
}

/* ---------- Buttons ---------- */

.qb-submit-btn {
    width: 100%;
    margin-top: 22px;
    padding: 14px 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    color: #111;
    background: linear-gradient(90deg, #a8a8a8, #d9d9d9);
}

.qb-submit-btn:hover {
    filter: brightness(1.08);
}

.qb-switch-row {
    margin-top: 18px;
    text-align: center;
    font-size: .88rem;
    color: rgba(255, 255, 255, .7);
}

.qb-link-btn {
    background: none;
    border: 0;
    color: #fff;
    font-weight: 900;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
}

/* ---------- "or" divider ---------- */

.qb-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: rgba(255, 255, 255, .5);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qb-or-divider::before,
.qb-or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .15);
}

/* ---------- Google sign-in button ---------- */

.qb-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: filter .15s ease, transform .05s ease;
}

.qb-google-btn:hover {
    filter: brightness(0.96);
}

.qb-google-btn:active {
    transform: scale(0.99);
}

.qb-google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- Finish-signup page (post-Google, pick a username) ---------- */

.qb-finish-card .qb-kicker {
    margin-bottom: 4px;
}

.qb-step-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 10px;
}

.qb-google-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    margin: 20px 0 26px;
}

.qb-google-chip-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.qb-google-chip-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #f59e0b);
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
}

.qb-google-chip-text {
    flex: 1 1 auto;
    min-width: 0;
}

.qb-google-chip-name {
    font-weight: 800;
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qb-google-chip-email {
    font-size: .78rem;
    color: rgba(255, 255, 255, .6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qb-google-chip-badge {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.qb-field-hint {
    margin: 4px 0 0;
    font-size: .74rem;
    color: rgba(255, 255, 255, .5);
    line-height: 1.4;
}
