/* Platform sign-in / register — BUSY navy + gold */

.bni-auth-shell {
  position: relative;
  min-height: calc(100vh - 8rem);
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
}

.bni-auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 31, 91, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(197, 160, 89, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(0, 31, 91, 0.08), transparent 45%),
    linear-gradient(180deg, #f5f7fb 0%, #faf9f7 100%);
}

.bni-auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(0, 31, 91, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.bni-auth-shell > .container {
  position: relative;
  z-index: 1;
}

.bni-auth-card {
  max-width: 32rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow:
    0 4px 6px rgba(0, 31, 91, 0.04),
    0 24px 48px rgba(0, 31, 91, 0.1);
  border: 1px solid rgba(0, 31, 91, 0.08);
  overflow: hidden;
}

.bni-auth-card-accent {
  height: 4px;
  background: linear-gradient(90deg, #001f5b 0%, #c5a059 50%, #001f5b 100%);
  background-size: 200% 100%;
  animation: bni-auth-shimmer 8s ease-in-out infinite;
}

@keyframes bni-auth-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.bni-auth-card-inner {
  padding: 1.5rem 1.75rem 1.35rem;
}

@media (min-width: 576px) {
  .bni-auth-card-inner {
    padding: 1.75rem 2rem 1.5rem;
  }
}

.bni-auth-icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(145deg, #001f5b 0%, #0a3a8c 100%);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(0, 31, 91, 0.28);
}

.bni-auth-title {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #001f5b;
  margin-bottom: 0.35rem;
}

.bni-auth-lead {
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.bni-auth-card .form-label {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #334155;
  margin-bottom: 0.3rem;
}

.bni-auth-card .form-control {
  border-radius: 0.65rem;
  padding: 0.6rem 0.9rem;
  min-height: 2.65rem;
  border: 1px solid rgba(0, 31, 91, 0.14);
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bni-auth-card .form-control:focus {
  border-color: #c5a059;
  box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.22);
}

.bni-auth-card .form-control::placeholder {
  color: #94a3b8;
}

.bni-auth-card .form-text {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #64748b;
}

.bni-auth-btn-primary {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.7rem 1rem;
  min-height: 2.75rem;
  border-radius: 0.65rem;
  border: none;
  background: linear-gradient(145deg, #001f5b 0%, #0d2d6e 100%);
  color: #fff;
  width: 100%;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 4px 14px rgba(0, 31, 91, 0.28);
}

.bni-auth-btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 31, 91, 0.35);
}

.bni-auth-btn-primary:active {
  transform: translateY(0);
}

.bni-auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.85rem;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bni-auth-divider::before,
.bni-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 31, 91, 0.12), transparent);
}

.bni-auth-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  background: #fff;
  border: 1px solid rgba(0, 31, 91, 0.12);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bni-auth-btn-google:hover {
  background: #fafbfc;
  border-color: rgba(0, 31, 91, 0.2);
  color: #001f5b;
  box-shadow: 0 4px 12px rgba(0, 31, 91, 0.08);
}

.bni-auth-btn-google .fa-google {
  color: #ea4335;
}

.bni-auth-social-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bni-auth-social-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  margin-right: 0.65rem;
  flex-shrink: 0;
  font-size: 1.05rem;
}

.bni-auth-social-label {
  line-height: 1.35;
}

.bni-auth-btn-wechat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: #07c160;
  border: 1px solid rgba(7, 193, 96, 0.35);
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.bni-auth-btn-wechat:hover {
  background: #06ad56;
  color: #fff;
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.25);
}

.bni-auth-btn-wechat .fa-weixin {
  font-size: 1.1rem;
}

.bni-auth-btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #191919;
  background: #fee500;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.bni-auth-btn-kakao:hover {
  background: #f5dc00;
  color: #191919;
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.35);
}

.bni-auth-btn-kakao .fa-comment {
  font-size: 1.05rem;
}

.bni-auth-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.bni-auth-btn-whatsapp:hover {
  background: #20bd5a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.bni-auth-btn-whatsapp .fa-whatsapp {
  font-size: 1.15rem;
}

.bni-auth-icon-wrap--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
}

.bni-auth-whatsapp-wait {
  text-align: center;
}

.bni-auth-footer {
  text-align: center;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 31, 91, 0.06);
  font-size: 0.875rem;
  color: #64748b;
}

.bni-auth-footer a {
  font-weight: 700;
  color: #001f5b;
  text-decoration: none;
  margin-left: 0.25rem;
}

.bni-auth-footer a:hover {
  color: #c5a059;
  text-decoration: underline;
}

.bni-auth-alert {
  border-radius: 0.65rem;
  border: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem !important;
}

.bni-auth-card-inner > .alert {
  border-radius: 0.65rem;
  font-size: 0.9rem;
}

.bni-auth-input-icon {
  position: relative;
}

.bni-auth-input-icon .form-control {
  padding-left: 2.9rem;
}

.bni-auth-input-icon .bni-auth-input-ico {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 2;
}

.bni-auth-input-icon:focus-within .bni-auth-input-ico {
  color: #c5a059;
}

.bni-auth-input-icon--password .form-control {
  padding-right: 2.9rem;
}

.bni-auth-input-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 0.25rem;
}

.bni-auth-input-toggle:hover {
  color: #64748b;
}

.bni-auth-input-icon--password:focus-within .bni-auth-input-toggle {
  color: #c5a059;
}

/* Login + register — same placement and card size */
.bni-auth-shell--login,
.bni-auth-shell--register {
  min-height: calc(100dvh - 5.5rem);
  padding: 0.75rem 0 1rem;
  display: flex;
  align-items: center;
}

.bni-auth-shell--login > .container,
.bni-auth-shell--register > .container {
  width: 100%;
  max-width: 36rem;
}

.bni-auth-shell--login .bni-auth-head,
.bni-auth-shell--register .bni-auth-head {
  margin-bottom: 1.25rem;
}

.bni-auth-shell--login .bni-auth-icon-wrap,
.bni-auth-shell--register .bni-auth-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  border-radius: 0.85rem;
}

.bni-auth-shell--login .bni-auth-title,
.bni-auth-shell--register .bni-auth-title {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.bni-auth-shell--login .bni-auth-lead,
.bni-auth-shell--register .bni-auth-lead {
  font-size: 0.8125rem;
  line-height: 1.4;
  max-width: none;
}

.bni-auth-back {
  margin-top: 0.75rem;
}

.bni-auth-login-fields,
.bni-auth-register-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.bni-auth-login-fields .bni-auth-forgot {
  margin-top: -0.15rem;
}

.bni-auth-login-fields + .bni-auth-btn-primary {
  margin-top: 0.25rem;
}

@media (min-width: 520px) {
  .bni-auth-register-fields {
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 0.75rem;
  }

  .bni-auth-field--full {
    grid-column: 1 / -1;
  }
}

.bni-auth-register-fields .bni-auth-field {
  min-width: 0;
}

.bni-auth-register-terms {
  margin-top: 0.85rem;
  margin-bottom: 1rem;
}

.bni-auth-register-terms .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  background: rgba(0, 31, 91, 0.03);
  border: 1px solid rgba(0, 31, 91, 0.08);
}

.bni-auth-register-terms .form-check-input {
  margin-top: 0.15rem;
  margin-left: 0;
  flex-shrink: 0;
}

.bni-auth-register-terms .form-check-label {
  line-height: 1.45;
}

.bni-auth-social-stack .bni-auth-btn-google,
.bni-auth-social-stack .bni-auth-btn-kakao,
.bni-auth-social-stack .bni-auth-btn-wechat,
.bni-auth-social-stack .bni-auth-btn-whatsapp {
  min-height: 2.75rem;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-height: 780px) {
  .bni-auth-shell--login,
  .bni-auth-shell--register {
    align-items: flex-start;
    padding-top: 0.5rem;
  }
}
