/* ===== Landing page ===== */
.bb-landing-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 16px;
    box-sizing: border-box;
    position: relative;
}

/* Full-bleed background: basketball court image, dimmed and softly blurred */
.bb-landing-page::before {
    content: '';
    position: fixed;
    inset: -20px;
    z-index: -1;
    background-color: #3a2412;
    background-image:
        linear-gradient(160deg, rgba(58,36,18,.55) 0%, rgba(90,56,28,.45) 60%, rgba(58,36,18,.6) 100%),
        url("../images/court-bg.png");
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: cover, cover;
    filter: blur(3px);
}

.bb-landing-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* ===== Hero ===== */
.bb-landing-title {
    font-size: 75px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 18px;
    text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.bb-landing-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: #fff;
    margin: 0 0 28px;
    max-width: 480px;
    text-shadow: 0 1px 10px rgba(0,0,0,.4);
}

.bb-landing-stats {
    display: flex;
    gap: 12px;
}

.bb-landing-stat {
    background: rgba(58,36,18,.45);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    padding: 14px 18px;
    flex: 1;
    backdrop-filter: blur(8px);
}

.bb-landing-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.bb-landing-stat-label {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 2px;
}

/* ===== Registration card ===== */
.bb-landing-form-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.bb-landing-form-title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
    color: #111827;
}

.bb-landing-form-hint {
    margin: 0 0 18px;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}

.bb-landing-url-preview {
    font-family: 'Courier New', monospace;
    color: #1d4ed8;
    font-weight: 600;
}

#bb-register-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

#bb-register-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .15s;
}

#bb-register-form input:focus {
    outline: none;
    border-color: #1d4ed8;
}

.bb-reg-username-wrap {
    position: relative;
}

.bb-reg-username-wrap input { padding-right: 90px; }

.bb-reg-username-status {
    position: absolute;
    right: 12px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    transform: translateY(-7px);
}

.bb-reg-username-status.available { color: #16a34a; }
.bb-reg-username-status.taken,
.bb-reg-username-status.invalid { color: #ef4444; }
.bb-reg-username-status.checking { color: #9ca3af; }

.bb-reg-field-hint {
    margin: -10px 0 14px;
    font-size: 12px;
    color: #9ca3af;
}

.bb-reg-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.bb-reg-submit:hover { background: #1e40af; }
.bb-reg-submit:disabled { opacity: .6; cursor: not-allowed; }

.bb-reg-login-link {
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    margin: 14px 0 0;
}

.bb-reg-login-link a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.bb-reg-login-link a:hover { text-decoration: underline; }

.bb-reg-notice {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.bb-reg-notice.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.bb-reg-notice.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .bb-landing-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .bb-landing-title { font-size: 30px; }
    .bb-landing-stats { flex-wrap: wrap; }
}
