:root {
  --nexa-primary: #087ea4;
  --nexa-primary-dark: #07546d;
  --nexa-accent: #f59e0b;
  --nexa-bg: #f2f7f9;
  --nexa-surface: #ffffff;
  --nexa-text: #132a35;
  --nexa-muted: #6d8089;
  --nexa-line: #dbe7eb;
  --nexa-success: #16865b;
  --nexa-danger: #b42318;
  --nexa-shadow: 0 28px 80px rgba(20, 40, 70, .16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

.nexa-auth-body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--nexa-text);
  background: var(--nexa-bg);
}

.nexa-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(8,126,164,.10), transparent 28%),
    radial-gradient(circle at 92% 86%, rgba(245,158,11,.08), transparent 24%),
    var(--nexa-bg);
}

.nexa-login-shell {
  width: min(1180px, 100%);
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid var(--nexa-line);
  border-radius: 28px;
  background: var(--nexa-surface);
  box-shadow: var(--nexa-shadow);
}

.nexa-login-art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px;
  color: #fff;
  background: linear-gradient(145deg, #073746, #0a6f8f);
}

.nexa-login-art-content {
  position: relative;
  z-index: 2;
}

.nexa-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  color: rgba(255,255,255,.78);
}

.nexa-login-art h1 {
  max-width: 660px;
  margin: 0 0 18px;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.nexa-login-art p {
  max-width: 570px;
  margin: 0;
  color: rgba(255,255,255,.80);
  font-size: 18px;
  line-height: 1.6;
}

.nexa-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 540px;
  margin-top: 34px;
}

.nexa-module-grid div {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 15px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
}

.nexa-module-grid span {
  font-size: 22px;
  opacity: .82;
}

.nexa-module-grid b {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .01em;
}

.nexa-orb {
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.nexa-orb-1 {
  width: 420px;
  height: 420px;
  top: -130px;
  right: -150px;
}

.nexa-orb-2 {
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: -110px;
}

.nexa-suite-line {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 26px;
  left: 62px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.65);
  font-size: 11px;
}

.nexa-login-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 58px 58px 26px;
  background: #fff;
}

.nexa-login-panel-inner {
  width: min(430px, 100%);
  margin: auto;
}

.nexa-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 45px;
}

.nexa-brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--nexa-primary), var(--nexa-accent));
  box-shadow: 0 10px 24px rgba(8,126,164,.24);
}

.nexa-brand strong {
  display: block;
  font-size: 26px;
  letter-spacing: -.02em;
}

.nexa-brand small {
  display: block;
  margin-top: 2px;
  color: var(--nexa-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.nexa-login-heading {
  margin-bottom: 25px;
}

.nexa-login-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--nexa-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nexa-login-heading h2 {
  margin: 0 0 8px;
  font-size: 31px;
  letter-spacing: -.03em;
}

.nexa-login-heading p {
  margin: 0;
  color: var(--nexa-muted);
  font-size: 14px;
  line-height: 1.55;
}

.nexa-alert {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.nexa-alert > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.nexa-alert-danger {
  color: #8f251c;
  border: 1px solid #ffd0ca;
  background: #fff2f0;
}

.nexa-alert-danger > span {
  color: #fff;
  background: var(--nexa-danger);
}

.nexa-alert-success {
  color: #12613f;
  border: 1px solid #c7eadb;
  background: #effaf5;
}

.nexa-alert-success > span {
  color: #fff;
  background: var(--nexa-success);
}

.nexa-field {
  margin-bottom: 17px;
}

.nexa-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
}

.nexa-input-wrap {
  position: relative;
}

.nexa-input-icon {
  position: absolute;
  top: 13px;
  left: 14px;
  color: var(--nexa-muted);
}

.nexa-input-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px 12px 43px;
  outline: none;
  border: 1px solid var(--nexa-line);
  border-radius: 13px;
  color: var(--nexa-text);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.nexa-input-wrap input:focus {
  border-color: var(--nexa-primary);
  box-shadow: 0 0 0 4px rgba(8,126,164,.11);
}

.nexa-login-button {
  width: 100%;
  min-height: 49px;
  margin-top: 3px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  font-weight: 900;
  background: var(--nexa-primary);
  box-shadow: 0 10px 24px rgba(8,126,164,.22);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nexa-login-button:hover {
  transform: translateY(-1px);
  background: #076f91;
  box-shadow: 0 14px 28px rgba(8,126,164,.26);
}

.nexa-login-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--nexa-muted);
  font-size: 11px;
}

.nexa-db-note {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: center;
  margin-top: 30px;
  padding: 13px 14px;
  border: 1px solid rgba(8,126,164,.14);
  border-radius: 14px;
  background: rgba(8,126,164,.045);
}

.nexa-db-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  background: var(--nexa-primary);
}

.nexa-db-note b {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
}

.nexa-db-note small {
  display: block;
  color: var(--nexa-muted);
  font-size: 10px;
  line-height: 1.45;
}

.nexa-login-footer {
  width: min(430px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid #edf2f4;
  color: #93a3aa;
  font-size: 10px;
}

@media (max-width: 900px) {
  .nexa-login-screen { padding: 0; }

  .nexa-login-shell {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }

  .nexa-login-art {
    min-height: 350px;
    padding: 40px 34px 56px;
  }

  .nexa-login-art h1 {
    max-width: 720px;
    font-size: clamp(34px, 7vw, 48px);
  }

  .nexa-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nexa-suite-line {
    left: 34px;
  }

  .nexa-login-panel {
    padding: 42px 30px 24px;
  }
}

@media (max-width: 560px) {
  .nexa-login-art {
    min-height: 285px;
    padding: 30px 23px 48px;
  }

  .nexa-login-art h1 {
    font-size: 31px;
  }

  .nexa-login-art p {
    font-size: 14px;
  }

  .nexa-module-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 23px;
  }

  .nexa-module-grid div {
    min-height: 66px;
    padding: 10px;
  }

  .nexa-module-grid span {
    font-size: 16px;
  }

  .nexa-module-grid b {
    margin-top: 7px;
    font-size: 9px;
  }

  .nexa-suite-line {
    right: 23px;
    left: 23px;
  }

  .nexa-suite-line small {
    display: none;
  }

  .nexa-login-panel {
    padding: 30px 22px 20px;
  }

  .nexa-brand {
    margin-bottom: 30px;
  }

  .nexa-login-heading h2 {
    font-size: 27px;
  }

  .nexa-login-meta {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 360px) {
  .nexa-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nexa-login-art {
    min-height: 360px;
  }
}
