:root {
  --bgg-bg: #061523;
  --bgg-panel: rgba(9, 28, 43, .86);
  --bgg-panel-strong: rgba(11, 38, 58, .96);
  --bgg-border: rgba(112, 211, 255, .28);
  --bgg-cyan: #5dd8ff;
  --bgg-blue: #1389d8;
  --bgg-text: #f4fbff;
  --bgg-muted: #a9c1d3;
  --bgg-input: #e9f7ff;
  --bgg-danger: #ff4d3d;
  --bgg-success: #6cee4b;
}

* {
  box-sizing: border-box;
}

body.bgg-auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Public Sans", "Segoe UI", Arial, sans-serif;
  color: var(--bgg-text);
  background:
    radial-gradient(circle at 18% 40%, rgba(29, 170, 255, .24), transparent 34%),
    linear-gradient(120deg, rgba(3, 13, 23, .92), rgba(8, 34, 52, .86)),
    url("../../asset/images/backgroundrobo_bgg_new.png") center/cover fixed;
}

body.bgg-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(93, 216, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 216, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 92%);
}

.bgg-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
  position: relative;
  z-index: 1;
}

.bgg-auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1fr);
  border: 1px solid var(--bgg-border);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(4, 19, 32, .72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}

.bgg-auth-brand,
.bgg-auth-card {
  padding: clamp(28px, 4vw, 56px);
}

.bgg-auth-brand {
  position: relative;
  min-height: 620px;
  background:
    linear-gradient(150deg, rgba(16, 63, 92, .72), rgba(4, 17, 29, .95)),
    url("../../asset/images/robo_bgg_new.png") bottom right/62% auto no-repeat;
}

.bgg-auth-brand::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px auto;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(93, 216, 255, .26), transparent 68%);
  filter: blur(6px);
}

.bgg-auth-logo {
  width: min(310px, 82%);
  height: auto;
  display: block;
  margin-bottom: 54px;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.38));
}

.bgg-auth-kicker {
  color: var(--bgg-cyan);
  font-size: .8rem;
  letter-spacing: .08em;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bgg-auth-brand h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  font-weight: 950;
}

.bgg-auth-brand p {
  max-width: 520px;
  color: #c7d9e6;
  line-height: 1.75;
  font-size: 1.02rem;
}

.bgg-auth-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.bgg-auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e8f7ff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px 14px;
}

.bgg-auth-points i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bgg-cyan);
  border-radius: 10px;
  background: rgba(93, 216, 255, .12);
}

.bgg-auth-card {
  background:
    linear-gradient(180deg, rgba(12, 38, 57, .98), rgba(5, 20, 33, .98));
}

.bgg-auth-card-header {
  margin-bottom: 28px;
}

.bgg-auth-card-header h2 {
  margin: 0 0 10px;
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.75rem, 2.4vw, 2.45rem);
}

.bgg-auth-card-header p {
  margin: 0;
  color: var(--bgg-muted);
  line-height: 1.65;
}

.bgg-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  font-weight: 700;
}

.bgg-auth-alert.success {
  background: rgba(108, 238, 75, .13);
  border-color: rgba(108, 238, 75, .32);
  color: #caffbd;
}

.bgg-auth-alert.danger {
  background: rgba(255, 77, 61, .13);
  border-color: rgba(255, 77, 61, .34);
  color: #ffd4cf;
}

.bgg-auth-form {
  display: grid;
  gap: 18px;
}

.bgg-auth-field label {
  display: block;
  color: #d9ebf7;
  font-weight: 800;
  margin-bottom: 8px;
  font-size: .9rem;
}

.bgg-auth-input {
  position: relative;
}

.bgg-auth-input i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #1478a8;
  font-size: 1.05rem;
  z-index: 1;
}

.bgg-auth-input input,
.bgg-auth-input select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(122, 211, 255, .42);
  border-radius: 16px;
  background: var(--bgg-input);
  color: #0b2132;
  padding: 0 48px;
  font-weight: 800;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bgg-auth-input select {
  appearance: none;
}

.bgg-auth-input input::placeholder {
  color: #6f889b;
}

.bgg-auth-input input:focus,
.bgg-auth-input select:focus {
  border-color: var(--bgg-cyan);
  box-shadow: 0 0 0 4px rgba(93, 216, 255, .16);
  transform: translateY(-1px);
}

.bgg-auth-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #1478a8;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
}

.bgg-auth-error {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #ffc3bd;
  font-size: .86rem;
  font-weight: 700;
  margin-top: 7px;
}

.bgg-auth-options,
.bgg-auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--bgg-muted);
}

.bgg-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bgg-muted);
  font-weight: 700;
}

.bgg-auth-check input {
  accent-color: var(--bgg-cyan);
}

.bgg-auth-link {
  color: var(--bgg-cyan);
  text-decoration: none;
  font-weight: 900;
}

.bgg-auth-link:hover {
  color: #fff;
}

.bgg-auth-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(93, 216, 255, .36);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0b6fa5, #17b9f5);
  box-shadow: 0 16px 34px rgba(17, 169, 239, .28);
  font-weight: 950;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.bgg-auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(17, 169, 239, .36);
}

.bgg-auth-secondary {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #eaf7ff;
  font-weight: 900;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.bgg-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bgg-auth-section-title {
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: var(--bgg-cyan);
  font-weight: 950;
}

.bgg-auth-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
  margin-top: 8px;
}

.bgg-auth-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff4d3d, #ffb020, #6cee4b);
  transition: width .2s ease;
}

.bgg-auth-footer {
  margin-top: 28px;
  color: #86a5ba;
  text-align: center;
  font-size: .84rem;
}

@media (max-width: 920px) {
  .bgg-auth-shell {
    grid-template-columns: 1fr;
  }

  .bgg-auth-brand {
    min-height: auto;
    padding-bottom: 120px;
    background:
      linear-gradient(150deg, rgba(16, 63, 92, .72), rgba(4, 17, 29, .95)),
      url("../../asset/images/robo_bgg_new.png") bottom right/190px auto no-repeat;
  }
}

@media (max-width: 560px) {
  .bgg-auth-wrap {
    padding: 14px;
  }

  .bgg-auth-shell {
    border-radius: 22px;
  }

  .bgg-auth-brand,
  .bgg-auth-card {
    padding: 24px;
  }

  .bgg-auth-grid {
    grid-template-columns: 1fr;
  }

  .bgg-auth-logo {
    width: 230px;
    margin-bottom: 30px;
  }
}
