/* Landing — mismo look que nivell.php: fondo negro + cajones blancos */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.page-landing-html,
html.page-landing-html:not([data-theme-palette="5"]),
html body.page-landing,
html[data-theme-palette] body.page-landing,
html:not([data-theme-palette="5"]) body.page-landing,
html.page-landing-html body,
html.page-landing-html:not([data-theme-palette="5"]) body,
body.page-landing {
  background: #0a0a0a !important;
  background-image: none !important;
  color: #fff !important;
}

body.page-landing {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.landing-column {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 12px 12px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.landing-page-header {
  margin: 0;
  padding: 8px 4px 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.landing-brand {
  color: #fff !important;
  text-decoration: none;
}

.landing-brand .navbar-brand,
.page-landing .navbar-brand {
  display: inline-flex;
  align-items: baseline;
  font-family: "Saira Condensed", "Oswald", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
  color: #fff;
}

.page-landing .navbar-brand__roll {
  color: #fff;
}

.page-landing .navbar-brand__amp {
  color: #2f63ff;
  font-style: italic;
  font-weight: 700;
  margin: 0 0.02em;
  font-size: 1em;
}

.page-landing .navbar-brand__dance {
  color: #fff;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.lang-switcher__form {
  margin: 0;
}

.lang-switcher__btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang-switcher__btn--active {
  background: #2f63ff;
  color: #fff;
  border-color: #2f63ff;
}

.landing-box {
  margin: 0;
  padding: 16px 14px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  color: #0f172a;
  text-align: left;
}

.landing-box--hero {
  padding: 0;
  overflow: hidden;
}

.landing-hero-img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 28%;
  background: #0a0a0a;
}

.landing-box--intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f63ff;
}

.landing-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

.landing-description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #64748b;
}

.landing-box--action {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  font: inherit;
  text-decoration: none !important;
  color: #0f172a;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.landing-box--action,
button.landing-box--action {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.landing-box--action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.landing-box__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(47, 99, 255, 0.1);
  color: #2f63ff;
  font-size: 1.2rem;
}

.landing-box__icon--register {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.landing-box__icon--admin {
  background: rgba(168, 85, 247, 0.12);
  color: #7c3aed;
}

.landing-box__icon--danger {
  background: rgba(220, 38, 38, 0.1);
  color: #b42318;
}

.landing-box__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.landing-box__label {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.landing-box__sub {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.25;
}

.landing-box__chevron {
  flex: 0 0 auto;
  margin-left: auto;
  color: #94a3b8;
  font-size: 0.85rem;
}

.landing-box--flash {
  font-size: 0.92rem;
  line-height: 1.45;
}

.landing-box--error {
  background: #fef2f2 !important;
  color: #991b1b;
  border-color: #fecaca;
}

.landing-box--ok {
  background: #ecfdf5 !important;
  color: #065f46;
  border-color: #a7f3d0;
}

.landing-footer {
  margin: 4px 4px 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.modal-overlay[hidden] {
  display: none;
}

.auth-modal {
  position: relative;
  width: min(100%, 28rem);
  background: #fff;
  border-radius: 18px;
  padding: 22px 16px 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  text-align: left;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 28px;
  line-height: 1;
}

.auth-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.auth-title-success {
  color: #0f172a;
}

.auth-subtitle {
  margin: -8px 0 16px;
  color: #64748b;
  font-size: 0.88rem;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.form-group input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  min-height: 44px;
}

.form-group input:focus {
  border-color: #2f63ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 99, 255, 0.22);
}

.auth-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.auth-input-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.04em;
}

.auth-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.auth-hint--mt14 {
  margin-top: 14px;
}

.auth-hint code {
  font-size: 11px;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
}

.auth-divider {
  margin: 18px 0;
  color: #64748b;
  position: relative;
  text-align: center;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.g_id_onload--hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.google-signin-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  width: 100%;
  margin: 4px 0 0;
}

.google-signin-wrap:empty {
  min-height: 0;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 800;
  min-height: 44px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: #2f63ff;
  color: #fff;
  border: 1px solid #2f63ff;
}

.btn-primary:hover {
  background: #2554e0;
  border-color: #2554e0;
}

.btn-success {
  background: #2f63ff;
  color: #fff;
}

.btn-success:hover {
  background: #2554e0;
}

.btn-google-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 8px auto 0;
  padding: 11px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-google-fallback:hover {
  background: #f8fafc;
}

body.page-landing.is-app-webview .google-signin-wrap {
  display: none !important;
}

.google-origin-details {
  margin-top: 12px;
}

.google-origin-details summary {
  cursor: pointer;
  list-style: none;
}

.google-origin-details summary::-webkit-details-marker {
  display: none;
}

.google-origin-code {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 0.85rem;
  word-break: break-all;
}

.google-origin-list {
  margin: 6px 0 0;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
}

.auth-legal {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}
