/* YG ESPORTS - Login / Register look.
   Colours ko badalna ho to sirf neeche :root ke rang badlo. */
:root {
  --yg-accent: #ffb020;
  --yg-accent-2: #ff7a18;
  --yg-ink: #1b1204;
  --yg-text: #eef1f8;
  --yg-muted: #98a2b8;
  --yg-field: #0b0e13;
  --yg-line: rgba(255, 255, 255, .10);
  --yg-glow: rgba(255, 176, 32, .30);
  --yg-discord: #5865f2;
  --yg-facebook: #1877f2;
}

/* ---------- Login | Register tabs ---------- */
.yg-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  padding: .35rem;
  margin: 0 0 1.5rem;
  background: rgba(0, 0, 0, .38);
  border: 1px solid var(--yg-line);
  border-radius: 1.05rem;
}
.yg-auth-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .05rem;
  padding: .7rem .4rem;
  border-radius: .8rem;
  text-align: center;
  line-height: 1.15;
  text-decoration: none;
  color: var(--yg-muted);
  transition: background .2s, color .2s, box-shadow .2s;
}
.yg-auth-tab i { font-size: 1.15rem; margin-bottom: .2rem; }
.yg-auth-tab strong { font-size: 1rem; font-weight: 700; color: var(--yg-text); }
.yg-auth-tab span { font-size: .72rem; }
.yg-auth-tab:hover { background: rgba(255, 255, 255, .06); color: var(--yg-text); text-decoration: none; }
.yg-auth-tab.is-active,
.yg-auth-tab.is-active:hover {
  background: linear-gradient(135deg, var(--yg-accent), var(--yg-accent-2));
  color: var(--yg-ink);
  box-shadow: 0 8px 20px var(--yg-glow);
}
.yg-auth-tab.is-active strong { color: var(--yg-ink); }

/* ---------- "Or continue with" + social buttons ---------- */
.yg-or {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.4rem 0 1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yg-muted);
}
.yg-or::before,
.yg-or::after { content: ""; flex: 1; height: 1px; background: var(--yg-line); }

.yg-social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: .6rem;
}
.yg-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .8rem .3rem;
  border: 1px solid var(--yg-line);
  border-radius: .95rem;
  background: rgba(255, 255, 255, .04);
  color: var(--yg-text);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.yg-social-btn i { font-size: 1.4rem; line-height: 1; }
.yg-social-btn:hover { transform: translateY(-2px); color: #fff; text-decoration: none; }

.yg-social-discord i { color: #8c96ff; }
.yg-social-discord:hover { background: var(--yg-discord); border-color: var(--yg-discord); box-shadow: 0 8px 20px rgba(88, 101, 242, .4); }
.yg-social-discord:hover i { color: #fff; }

.yg-social-google i {
  background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg) 73% 55% / 150% 150% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.yg-social-google:hover { background: #fff; border-color: #fff; color: #202124; box-shadow: 0 8px 20px rgba(255, 255, 255, .22); }

.yg-social-facebook i { color: #5aa2ff; }
.yg-social-facebook:hover { background: var(--yg-facebook); border-color: var(--yg-facebook); box-shadow: 0 8px 20px rgba(24, 119, 242, .4); }
.yg-social-facebook:hover i { color: #fff; }

/* ---------- The card itself (only the cards that have the tabs) ---------- */
.panel:has(.yg-auth-tabs) {
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(255, 176, 32, .12), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(88, 101, 242, .12), transparent 60%),
    linear-gradient(160deg, #141925, #0b0d13);
  border: 1px solid rgba(255, 176, 32, .30);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  padding: 1.5rem 1.4rem;
}
.panel:has(.yg-auth-tabs) > h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: .01em;
  margin-bottom: 1.25rem !important;
}
.panel:has(.yg-auth-tabs) > h1::after {
  content: "";
  display: block;
  width: 2.8rem;
  height: 3px;
  margin-top: .55rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--yg-accent), var(--yg-accent-2));
}

/* labels and fields */
.panel:has(.yg-auth-tabs) .form-label {
  margin-bottom: .4rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--yg-muted);
}
.panel:has(.yg-auth-tabs) .form-control {
  padding: .78rem 1rem;
  background: var(--yg-field);
  border: 1px solid var(--yg-line);
  border-radius: .9rem;
  color: var(--yg-text);
  box-shadow: none;
}
.panel:has(.yg-auth-tabs) .form-control:focus {
  background: #0d1118;
  border-color: var(--yg-accent);
  color: var(--yg-text);
  box-shadow: 0 0 0 .22rem rgba(255, 176, 32, .18);
}
.panel:has(.yg-auth-tabs) .form-text { color: var(--yg-muted); font-size: .78rem; }

/* main button */
.panel:has(.yg-auth-tabs) .btn-accent {
  padding: .85rem 1rem;
  border: 0;
  border-radius: .95rem;
  background: linear-gradient(135deg, var(--yg-accent), var(--yg-accent-2));
  color: var(--yg-ink);
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 12px 26px var(--yg-glow);
  transition: transform .15s, filter .2s, box-shadow .2s;
}
.panel:has(.yg-auth-tabs) .btn-accent:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 16px 30px var(--yg-glow); }

/* register page: optional location box */
.panel:has(.yg-auth-tabs) .location-panel {
  padding: 1rem;
  background: rgba(255, 176, 32, .05);
  border: 1px dashed rgba(255, 176, 32, .38);
  border-radius: 1rem;
}
.panel:has(.yg-auth-tabs) .location-panel .btn {
  border: 1px solid var(--yg-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--yg-text);
  font-size: .8rem;
}
.panel:has(.yg-auth-tabs) .location-panel .btn:hover:not(:disabled) { border-color: var(--yg-accent); color: var(--yg-accent); }
.panel:has(.yg-auth-tabs) .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0;
  background-color: var(--yg-field);
  border: 1.5px solid rgba(255, 176, 32, .65);
  border-radius: .4rem;
}
.panel:has(.yg-auth-tabs) .form-check-input:checked {
  background-color: var(--yg-accent);
  border-color: var(--yg-accent);
}
.panel:has(.yg-auth-tabs) .alert { border-radius: .9rem; }
