/* =========================================================
   SPORTIAN - LOGIN PRIVADO
   Archivo independiente para login.html
   No depende de styles.css
   ========================================================= */

:root {
  --dark-950: #02060b;
  --dark-900: #050a12;
  --dark-850: #07111f;
  --light: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.72);
  --blue: #1769ff;
  --blue-soft: #009dff;
  --orange: #ff7a1a;
  --line: rgba(255, 255, 255, 0.12);
  --container: min(1380px, calc(100% - 80px));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--light);
  background: var(--dark-950);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ================= HEADER ================= */

.login-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 78px;
  padding: 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 6, 11, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-figure {
  width: 34px;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  width: 170px;
  height: auto;
}

.login-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.login-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.22s ease;
}

.login-nav a:hover {
  color: #ffffff;
}

.login-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 3px;
  background: var(--orange);
  transition: width 0.22s ease;
}

.login-nav a:hover::after {
  width: 100%;
}

/* ================= PAGE ================= */

.login-page {
  min-height: 100vh;
}

.login-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 118px 0 70px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(2, 7, 14, 0.96) 0%,
      rgba(2, 7, 14, 0.90) 34%,
      rgba(2, 7, 14, 0.68) 55%,
      rgba(2, 7, 14, 0.32) 78%,
      rgba(2, 7, 14, 0.18) 100%
    ),
    url("./assets/hero-sportian.jpg");
  background-size: cover;
  background-position: center right;
}

.login-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 22%, rgba(23, 105, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 84%, rgba(255, 122, 26, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.login-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.55fr);
  gap: 72px;
  align-items: center;
}

.login-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.login-copy h1 {
  margin: 0;
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(3.2rem, 6.4vw, 7rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.login-copy p {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.75;
}

.login-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.login-features span {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

/* ================= CARD ================= */

.login-card {
  position: relative;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(23, 105, 255, 0.20), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(255, 122, 26, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(12, 24, 42, 0.96), rgba(3, 8, 15, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 92px rgba(0, 0, 0, 0.45);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.card-header,
.access-form,
.privacy-note {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.card-header span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-header strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.access-form {
  display: grid;
  gap: 22px;
}

.form-group {
  display: grid;
  gap: 10px;
}

.form-group label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  outline: none;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.form-group select {
  cursor: pointer;
}

.form-group option {
  color: #07111f;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(23, 105, 255, 0.84);
  background: rgba(23, 105, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.12);
}

.submit-button {
  min-height: 60px;
  margin-top: 6px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  border: 0;
  cursor: pointer;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.submit-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.submit-button span {
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.form-message.error {
  color: #ff8a8a;
}

.form-message.success {
  color: #68efb7;
}

.privacy-note {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.privacy-note span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 122, 26, 0.65);
}

.privacy-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.65;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .login-header {
    padding: 0 38px;
  }

  .login-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .login-card {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  :root {
    --container: calc(100% - 34px);
  }

  .login-header {
    height: 72px;
    padding: 0 18px;
  }

  .brand {
    gap: 8px;
  }

  .brand-figure {
    width: 30px;
  }

  .brand-text {
    width: 128px;
  }

  .login-nav {
    gap: 14px;
  }

  .login-nav a {
    font-size: 12px;
  }

  .login-nav a:nth-child(2) {
    display: none;
  }

  .login-hero {
    padding: 104px 0 48px;
    background-position: 66% center;
  }

  .login-copy h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
    line-height: 0.92;
  }

  .login-copy p {
    font-size: 16px;
  }

  .login-card {
    padding: 24px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .submit-button {
    font-size: 12px;
  }
}
