:root {
  --coast-blue: #289dbe;
  --deep-blue: #0b3340;
  --sunset-orange: #ff9b24;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --text: #162126;
  --muted: #53636a;
  --error: #9f1d1d;
  --radius: 8px;
  --font-family: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-family);
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(5, 32, 43, 0.72), rgba(5, 32, 43, 0.28) 52%, rgba(255, 155, 36, 0.28)),
    url('/panel/imagenes/bng-aeri.webp') center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(40, 157, 190, 0.35);
  outline-offset: 3px;
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 28px;
  align-items: end;
  padding: max(28px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
}

.brand-pane {
  min-width: 0;
  display: grid;
  gap: 28px;
  align-content: end;
  min-height: 48vh;
  padding-bottom: 4vh;
  color: #fff;
}

.brand-pane img {
  width: min(280px, 70vw);
  height: auto;
}

.brand-pane p,
.form-heading p {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-pane h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.auth-panel {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(0, 35, 55, 0.28);
  backdrop-filter: blur(24px);
}

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

.auth-form[hidden] {
  display: none;
}

.form-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.form-heading p {
  color: var(--coast-blue);
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(40, 157, 190, 0.22);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.primary-action,
.secondary-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius);
  color: #fff;
  background: var(--coast-blue);
  font-size: 15px;
  font-weight: 800;
}

.secondary-action {
  color: var(--coast-blue);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(40, 157, 190, 0.24);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-alert {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid rgba(159, 29, 29, 0.22);
  border-radius: var(--radius);
  color: var(--error);
  background: rgba(255, 228, 224, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.auth-alert[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .login-shell {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 18px;
  }

  .brand-pane {
    min-height: 32vh;
    padding-bottom: 0;
  }

  .brand-pane h1 {
    font-size: 38px;
  }
}

@media (max-width: 460px) {
  .login-shell {
    padding: 12px;
  }

  .brand-pane img {
    width: 210px;
  }

  .brand-pane h1 {
    font-size: 31px;
  }

  .auth-panel {
    padding: 14px;
  }
}
