/* Estilos exclusivos da tela de login — não compartilhados com o shell interno. */

:root {
  --nx-ink: #101826;
  --nx-slate: #5b6b80;
  --nx-line: #e3e8ef;
  --nx-bg: #f4f6f9;
  --nx-surface: #ffffff;
  --nx-brand: #2b59d6;
  --nx-brand-soft: #eaf0ff;
  --nx-brand-dark: #16224a;
  --nx-teal: #0e8f7e;
  --nx-red: #d0453c;
  --nx-radius: 8px;
}

* { box-sizing: border-box }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--nx-ink);
  font-size: 14px;
  margin: 0;
  min-height: 100vh;
  background: var(--nx-bg);
}

.num { font-family: 'IBM Plex Mono', monospace; }

.auth-shell {
  min-height: 100vh;
  display: flex;
}

.auth-brand {
  flex: 1 1 46%;
  background: radial-gradient(circle at 20% 20%, #23347a 0%, var(--nx-brand-dark) 55%, #0c1230 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 48px;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .5;
  pointer-events: none;
}

.auth-brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--nx-brand-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}

.auth-brand .brand-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.2px;
  position: relative;
  z-index: 1;
}

.auth-brand .brand-name small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #aab8e6;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.auth-brand .pitch {
  position: relative;
  z-index: 1;
  max-width: 380px;
}

.auth-brand .pitch h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.auth-brand .pitch p {
  color: #c2cdf0;
  font-size: 14px;
  line-height: 1.55;
}

.auth-brand .feats {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.auth-brand .feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #dbe2f7;
  padding: 7px 0;
}

.auth-brand .feats li i {
  color: #7ea2ff;
  font-size: 15px;
}

.auth-brand .foot-note {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  color: #7f8dc0;
}

.auth-form-wrap {
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--nx-surface);
}

.auth-form {
  width: 100%;
  max-width: 380px;
}

.auth-form .mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-form .mobile-brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--nx-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.auth-form h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 4px;
}

.auth-form .sub {
  color: var(--nx-slate);
  font-size: 13.5px;
  margin-bottom: 26px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--nx-slate);
  margin-bottom: 5px;
  letter-spacing: .01em;
}

.form-control {
  font-size: 13.5px;
  border-color: var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 10px 12px;
}

.form-control:focus {
  border-color: var(--nx-brand);
  box-shadow: 0 0 0 3px var(--nx-brand-soft);
}

.input-group .btn-eye {
  border-color: var(--nx-line);
  background: #fafbfc;
  color: var(--nx-slate);
}

.input-group:focus-within .btn-eye,
.input-group:focus-within .form-control {
  border-color: var(--nx-brand);
}

.btn-primary {
  --bs-btn-bg: var(--nx-brand);
  --bs-btn-border-color: var(--nx-brand);
  --bs-btn-hover-bg: #2249b3;
  --bs-btn-hover-border-color: #2249b3;
  --bs-btn-active-bg: #1d3f9c;
  font-weight: 600;
  border-radius: var(--nx-radius);
  padding: 10px 14px;
  font-size: 14px;
}

.link-forgot {
  font-size: 12.5px;
  color: var(--nx-brand);
  text-decoration: none;
  font-weight: 500;
}

.link-forgot:hover { text-decoration: underline; }

.alert-login {
  display: none;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  border-radius: var(--nx-radius);
  padding: 11px 13px;
  margin-bottom: 18px;
  border: 1px solid #f5c9c5;
  border-left: 3px solid var(--nx-red);
  background: #fdecea;
  color: #9c322b;
}

.alert-login.show { display: flex; }
.alert-login i { font-size: 15px; margin-top: 1px; }
.alert-login.info { border-color: #c3d2f7; border-left-color: var(--nx-brand); background: var(--nx-brand-soft); color: #1d3f9c; }

.form-check-label { font-size: 13px; color: var(--nx-slate); }

.form-check-input:checked {
  background-color: var(--nx-brand);
  border-color: var(--nx-brand);
}

.auth-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 11.5px;
  color: var(--nx-slate);
}

.btn-primary .btn-loader { display: none; }
.btn-primary.loading .btn-loader { display: inline-flex; }
.btn-primary.loading .btn-label { opacity: .85 }
.btn-primary.loading { pointer-events: none; }

@media (max-width: 900px) {
  .auth-brand { display: none; }
  .auth-form-wrap { flex: 1 1 100%; }
  .auth-form .mobile-brand { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
