/* Shared KaraQpro login — role picker + card (used on desktop & mobile) */

/* ── Desktop split layout ───────────────────────────────────── */
body.login-body .login-page {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(380px, 0.95fr);
  align-items: stretch;
  justify-content: stretch;
  min-height: 100vh;
  padding: 0;
  gap: 0;
}

body.login-body .login-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem);
  border-right: 1px solid rgba(212, 175, 55, .12);
  background:
    linear-gradient(165deg, rgba(212, 175, 55, .07) 0%, transparent 42%),
    linear-gradient(180deg, rgba(8, 8, 12, .72) 0%, rgba(4, 4, 8, .88) 100%);
}

body.login-body .login-hero-inner {
  max-width: 520px;
}

body.login-body .login-hero-logo {
  width: min(200px, 42vw);
  height: auto;
  display: block;
  margin-bottom: 1.25rem;
}

body.login-body .login-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 .65rem;
  background: linear-gradient(90deg, #fff 0%, var(--gold-light, #f5e6a3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.login-body .login-hero-tagline {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 0 2rem;
  max-width: 38ch;
}

body.login-body .login-hero-features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.login-body .login-hero-features li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.45;
}

body.login-body .login-hero-features .feat-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(212, 175, 55, .1);
  border: 1px solid rgba(212, 175, 55, .18);
  font-size: 1rem;
}

body.login-body .login-hero-features strong {
  color: var(--gold-light, #f5e6a3);
  font-weight: 600;
}

body.login-body .login-hero-app {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .75rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .28);
  background: rgba(212, 175, 55, .06);
  color: var(--gold-light, #f5e6a3);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
}

body.login-body .login-hero-app:hover {
  background: rgba(212, 175, 55, .12);
  border-color: rgba(212, 175, 55, .45);
  transform: translateX(2px);
}

body.login-body .login-hero-credit {
  position: absolute;
  bottom: 1.5rem;
  left: clamp(2rem, 6vw, 5rem);
  margin: 0;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .65;
}

body.login-body .login-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow-y: auto;
}

body.login-body .login-card {
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 16px;
  animation: loginPanelIn .5s ease;
}

body.login-body .login-card-head {
  margin-bottom: 1.35rem;
}

body.login-body .login-card-eyebrow {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent, #d4af37);
}

body.login-body .login-card-heading {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

body.login-body .login-card h1 {
  font-size: 1.25rem;
}

body.login-body .login-card .subtitle {
  margin-bottom: 1.35rem;
  font-size: .88rem;
}

body.login-body .login-card[data-auth-mode="forgot"] .login-portals,
body.login-body .login-card[data-auth-mode="reset"] .login-portals {
  display: none;
}

body.login-body .login-art-center {
  display: none;
}

body.login-body .login-art-musisi {
  top: 8%;
  left: 4%;
  width: min(280px, 22vw);
  opacity: .35;
}

body.login-body .login-art-neon {
  bottom: 6%;
  left: 8%;
  right: auto;
  width: min(240px, 20vw);
  opacity: .25;
}

body.login-body .login-app-link--compact {
  margin-top: 1.25rem;
  padding: .65rem .85rem;
  font-size: .8rem;
  text-align: left;
}

@media (max-width: 960px) {
  body.login-body .login-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body.login-body .login-hero {
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, .12);
    padding: 2rem 1.5rem 2.5rem;
  }

  body.login-body .login-hero-inner {
    max-width: none;
  }

  body.login-body .login-hero-logo {
    width: 140px;
  }

  body.login-body .login-hero-features {
    gap: .75rem;
    margin-bottom: 1.25rem;
  }

  body.login-body .login-hero-credit {
    position: static;
    margin-top: 1.5rem;
  }

  body.login-body .login-main {
    padding: 1.5rem 1.25rem 2rem;
  }

  body.login-body .login-card {
    max-width: none;
    box-shadow: none;
    border: none;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
  }
}

.login-portals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  margin-bottom: 1.35rem;
}

.login-portals--two {
  grid-template-columns: repeat(2, 1fr);
}

.login-portal-opt {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: .55rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .14);
  background: rgba(10, 10, 16, .65);
  color: var(--muted);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
  cursor: pointer;
  font-family: inherit;
}

.login-portal-opt .portal-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.login-portal-opt:hover {
  border-color: rgba(212, 175, 55, .35);
  color: var(--text);
}

.login-portal-opt.active {
  border-color: rgba(212, 175, 55, .55);
  background: rgba(212, 175, 55, .1);
  color: var(--gold-light, #f5e6a3);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .12);
}

.login-panel {
  display: none;
}

.login-panel.active {
  display: block;
  animation: loginPanelIn .35s ease;
}

@keyframes loginPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-alt-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: .25rem;
}

.btn-portal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .25);
  background: transparent;
  color: var(--gold-light, #f5e6a3);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, border-color .2s;
}

.btn-portal:hover {
  background: rgba(212, 175, 55, .08);
  border-color: rgba(212, 175, 55, .45);
}

.login-status {
  min-height: 1.25rem;
  font-size: .82rem;
  color: var(--muted);
  text-align: left;
}

.login-status.error {
  color: #ff8a8a;
}

.login-status.ok {
  color: var(--green, #8fbc6a);
}

.login-register-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: .5rem;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent, #d4af37);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  padding: .25rem;
  font-family: inherit;
}

.btn-text:hover {
  color: var(--gold-light, #f5e6a3);
}

/* Mobile full-page login */
.mobile-login-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #060606;
  color: #f5f0e8;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.mobile-login-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(212, 175, 55, .14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(154, 123, 40, .08), transparent 50%);
}

.mobile-login-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.25rem 2rem;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.mobile-login-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.mobile-login-brand img {
  width: min(200px, 72vw);
  height: auto;
  margin-bottom: .5rem;
}

.mobile-login-card {
  background: rgba(14, 14, 14, .92);
  border: 1px solid rgba(212, 175, 55, .14);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}

.mobile-login-card h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  margin-bottom: .25rem;
}

.mobile-login-card .subtitle {
  color: #8a8270;
  font-size: .88rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.mobile-login-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .78rem;
  color: #8a8270;
}

.mobile-login-footer a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
}

.login-auth-modes {
  display: flex;
  gap: .35rem;
  margin-bottom: 1.25rem;
  padding: .3rem;
  background: rgba(10, 10, 16, .65);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .1);
}

.login-auth-mode {
  flex: 1;
  padding: .6rem .65rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s;
}

.login-auth-mode.active {
  background: rgba(212, 175, 55, .15);
  color: var(--gold-light, #f5e6a3);
}

.auth-view { display: none; }
.auth-view.active { display: block; animation: loginPanelIn .35s ease; }

.hidden { display: none !important; }

.login-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .5rem 1rem;
  margin-top: .75rem;
}

.login-field-hint {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
  margin: -.25rem 0 .5rem;
}

.reset-link-box {
  background: rgba(143, 188, 106, .08);
  border: 1px solid rgba(143, 188, 106, .25);
  border-radius: 10px;
  padding: .75rem;
  margin-top: .75rem;
  font-size: .8rem;
  word-break: break-all;
}

.reset-link-box a { color: var(--green, #8fbc6a); font-weight: 600; }

.login-card select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  width: 100%;
}

.login-app-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: .75rem;
  border-radius: 12px;
  border: 1px dashed rgba(212, 175, 55, .2);
  color: var(--muted);
  font-size: .82rem;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.login-app-link:hover {
  border-color: rgba(212, 175, 55, .4);
  color: var(--gold-light, #f5e6a3);
}

.login-app-link strong { color: var(--accent, #d4af37); }

body.login-body .login-footer .hint {
  text-align: left;
}

body.login-body .demo-hint {
  justify-content: flex-start;
}

@media (min-width: 961px) {
  body.login-body #venueRegisterForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.15rem;
    row-gap: 1rem;
  }

  body.login-body #venueRegisterForm .login-status,
  body.login-body #venueRegisterForm .btn-signin {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .login-portals {
    grid-template-columns: 1fr;
  }

  .login-portal-opt {
    flex-direction: row;
    justify-content: flex-start;
    padding: .75rem 1rem;
    gap: .65rem;
  }
}
