/* B-Parts login screen shown before the AR scene. */
#login {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #e9edf3; touch-action: auto; -webkit-user-select: text; user-select: text;
  font-family: 'Plus Jakarta Sans', 'Noto Sans Thai Looped', system-ui, sans-serif;
  transition: opacity .5s;
}
#login.hide { opacity: 0; pointer-events: none; }
#login button, #login input { font-family: inherit; }

.bp-app {
  max-width: 488px; min-height: 100%; margin: 0 auto; box-sizing: border-box;
  background: #121212; color: #fff; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
}

.bp-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; padding: env(safe-area-inset-top, 0px) 14px 0; border-bottom: 1px solid #262626;
}
.bp-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.bp-logo { width: 40px; height: 40px; border-radius: 10px; background: #ffc700; display: grid; place-items: center; }
.bp-actions { display: flex; gap: 6px; }
.bp-icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.bp-icon-btn:active { background: #222; }

.bp-hero { padding: 38px 18px 26px; }
.bp-kicker { font-size: 14px; font-weight: 800; letter-spacing: .14em; color: #bdbdbd; }
.bp-title { margin: 10px 0 0; font-size: 28px; line-height: 1.22; font-weight: 800; }
.bp-title span { display: block; color: #ffc700; }

.bp-card { margin: 0 18px; padding: 28px 23px 24px; border-radius: 14px; background: #fff; color: #111; }
.bp-card.shake { animation: bp-shake .4s; }
@keyframes bp-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.bp-card h1 { margin: 0; font-size: 25px; font-weight: 800; }
.bp-sub { margin: 24px 0 22px; font-size: 14px; color: #333; }

.bp-label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.bp-field { position: relative; margin-bottom: 22px; }
.bp-input {
  width: 100%; height: 52px; box-sizing: border-box; padding: 0 48px 0 49px;
  border: 1px solid #d6d6d6; border-radius: 10px; background: #fff; color: #111;
  font-size: 16px; font-weight: 500; outline: none; transition: border-color .15s, box-shadow .15s;
}
.bp-input::placeholder { color: #8a8a8a; font-weight: 400; }
.bp-input:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(255,199,0,.45); }
.bp-input.invalid { border-color: #d92d20; }
.bp-lead { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #555; pointer-events: none; }
.bp-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: transparent; color: #444; display: grid; place-items: center; cursor: pointer;
}

.bp-error { display: none; margin: -12px 0 16px; font-size: 13px; color: #d92d20; }
.bp-error.show { display: block; }

.bp-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 26px; font-size: 14px; }
.bp-check { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.bp-check input { width: 22px; height: 22px; margin: 0; accent-color: #111; cursor: pointer; }
.bp-link { padding: 0; border: 0; background: none; color: #111; font-size: 14px; font-weight: 800; text-decoration: underline; cursor: pointer; }

.bp-primary, .bp-secondary {
  width: 100%; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16px; font-weight: 800; cursor: pointer;
}
.bp-primary { border: 0; background: #ffc700; color: #111; transition: background .15s; }
.bp-primary:disabled { background: #ffe69a; color: #8d7d55; cursor: default; }
.bp-secondary { border: 2px solid #d0d0d0; background: #fff; color: #111; }

.bp-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; font-size: 13px; color: #555; }
.bp-divider::before, .bp-divider::after { content: ""; flex: 1; height: 1px; background: #e3e3e3; }

.bp-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 12px; color: #444; }
