/* =========================================================
   eGamingUp Inc. — style.css
   Paleta: negro / blanco / rojo. Minimalista, solemne, sin
   imágenes ni logotipos: la tipografía y el orden hacen el trabajo.
   ========================================================= */

:root {
  --black:        #0a0a0a;
  --white:        #ffffff;
  --red:          #d1132a;
  --red-deep:     #8f0d1c;
  --grey-line:    #232323;
  --grey-line-lt: #e2e0dd;
  --grey-text:    #8a8a8a;
  --grey-text-lt: #5a5a5a;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- layout ---------- */

.split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 42fr 58fr;
}

.panel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6vw 5vw;
}

.panel-inner {
  width: 100%;
  max-width: 640px;
}

.panel-access {
  background: var(--black);
  color: var(--white);
  justify-content: flex-end;
}

.panel-access .panel-inner { margin-left: auto; max-width: 420px; }

.panel-access::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 3px;
  background: var(--red);
}

.panel-corp {
  background: var(--white);
  color: var(--black);
}

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 20px;
}

.eyebrow--light { color: var(--red); }

/* ---------- left: access ---------- */

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 34px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--white);
}

.wordmark-accent { color: var(--red); }

.access-copy {
  font-size: 14.5px;
  line-height: 1.6;
  color: #b7b7b7;
  margin: 0 0 40px;
  max-width: 34ch;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #999;
}

.field input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grey-line);
  padding: 10px 2px;
  transition: border-color .25s var(--ease);
}

.field input::placeholder { color: #555; }

.field input:hover { border-color: #3a3a3a; }

.field input:focus {
  outline: none;
  border-color: var(--red);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input { width: 100%; padding-right: 34px; }

.toggle-visibility {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
}

.eye-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.4px solid #777;
  position: relative;
  transition: border-color .2s var(--ease);
}

.eye-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #777;
  transition: background .2s var(--ease);
}

.toggle-visibility[aria-pressed="true"] .eye-icon,
.toggle-visibility[aria-pressed="true"] .eye-icon::before {
  border-color: var(--red);
  background: var(--red);
}

.toggle-visibility:hover .eye-icon { border-color: var(--white); }

.btn-submit {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  padding: 14px 20px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), opacity .2s var(--ease);
}

.btn-submit:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn-submit:disabled {
  opacity: .55;
  cursor: progress;
}

.btn-submit.is-loading .btn-label::after {
  content: "…";
}

.login-message {
  min-height: 18px;
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--red);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.login-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.login-message.is-success { color: #3fae5c; }

.login-form.is-shaking { animation: shake .38s var(--ease); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-7px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(3px); }
}

/* ---------- right: corporate ---------- */

.corp-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.9vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 15ch;
}

.corp-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--grey-text-lt);
  max-width: 54ch;
  margin: 0 0 34px;
}

.platform-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--grey-line-lt);
}

.platform {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: -0.01em;
}

.platform-sep { color: var(--red); font-weight: 400; }

/* ---------- directory ---------- */

.directory-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.directory-head h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0;
}

.directory-hint {
  font-size: 12px;
  color: var(--grey-text);
  margin: 0;
}

.contact-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.contact-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--grey-line-lt);
}

.contact-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--black);
  transition: color .2s var(--ease);
}

.contact-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0%;
  background: var(--red);
  transition: width .3s var(--ease);
}

.contact-item:hover::before,
.contact-item:focus-within::before { width: 100%; }

.contact-item:hover .contact-link,
.contact-item:focus-within .contact-link { color: var(--red); }

.region-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.contact-item:hover .region-tag,
.contact-item:focus-within .region-tag { opacity: 1; transform: translateX(0); }

.region-tag-code {
  color: var(--white);
  background: var(--red);
  padding: 3px 7px;
  letter-spacing: .08em;
}

.region-tag-name {
  color: var(--grey-text-lt);
  text-transform: uppercase;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translate(-50%, 10px);
  background: var(--black);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 10px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 20;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--black);
  color: #8a8a8a;
  text-align: center;
  padding: 16px 20px;
}

.site-footer p {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .05em;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }

  .panel-access { justify-content: flex-start; order: 2; }
  .panel-access .panel-inner { margin-left: 0; max-width: 100%; }
  .panel-corp { order: 1; }

  .panel-access::after {
    top: 0; left: 0; right: auto;
    width: 100%; height: 3px;
  }

  .panel { padding: 48px 6vw; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}
