:root {
  --tn-auth-blue-dark: #004AAD;
  --tn-auth-blue: #2365E2;
  --tn-auth-turquoise: #14C6CC;
  --tn-auth-pink-soft: #F5B8B8;
  --tn-auth-pink: #F9799A;
  --tn-auth-coral: #F9775F;
}

.tn-auth-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(340px, .95fr);
  background:
    radial-gradient(circle at 10% 15%, rgba(20, 198, 204, .18), transparent 32%),
    linear-gradient(135deg, #f7fbff 0%, #eef5ff 55%, #ffffff 100%);
}

.tn-auth-brand-panel {
  min-height: 100vh;
  padding: clamp(32px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(0, 74, 173, .98), rgba(35, 101, 226, .94)),
    #004AAD;
}

.tn-auth-logo {
  width: min(360px, 82%);
  height: auto;
  filter: brightness(0) invert(1);
}

.tn-auth-brand-copy {
  max-width: 600px;
}

.tn-auth-brand-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
}

.tn-auth-brand-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

.tn-auth-brand-foot {
  color: rgba(255,255,255,.7);
  font-size: .84rem;
}

.tn-auth-form-panel {
  padding: clamp(24px, 6vw, 80px);
  display: grid;
  place-items: center;
}

.tn-auth-card {
  width: min(100%, 480px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(0, 74, 173, .13);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(0, 74, 173, .13);
}

.tn-auth-kicker {
  margin: 0 0 10px;
  color: var(--tn-auth-blue);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tn-auth-card h2 {
  margin: 0;
  color: #0d2348;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.tn-auth-description {
  margin: 10px 0 24px;
  color: #5d6c80;
  line-height: 1.55;
}

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

.tn-auth-field {
  display: grid;
  gap: 7px;
}

.tn-auth-field label {
  color: #18345f;
  font-size: .9rem;
  font-weight: 750;
}

.tn-auth-field input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #bdcbe0;
  border-radius: 12px;
  background: #fff;
  color: #10234a;
  font: inherit;
}

.tn-auth-field input:focus {
  border-color: var(--tn-auth-blue);
  outline: 3px solid rgba(35, 101, 226, .15);
}

.tn-auth-submit {
  min-height: 52px;
  margin-top: 4px;
  border: 1px solid var(--tn-auth-blue-dark);
  border-radius: 13px;
  background: var(--tn-auth-blue-dark);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tn-auth-submit:hover {
  background: var(--tn-auth-blue);
}

.tn-auth-submit:disabled {
  cursor: wait;
  opacity: .62;
}

.tn-auth-status {
  min-height: 22px;
  margin: 18px 0 0;
  color: #64748b;
  font-size: .84rem;
}

.tn-auth-message {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
}

.tn-auth-message.is-error {
  border: 1px solid rgba(249, 119, 95, .45);
  background: rgba(249, 119, 95, .11);
  color: #8a2e21;
}

.tn-auth-message.is-success {
  border: 1px solid rgba(20, 198, 204, .45);
  background: rgba(20, 198, 204, .12);
  color: #075d61;
}

.tn-auth-message.is-info {
  border: 1px solid rgba(35, 101, 226, .30);
  background: rgba(35, 101, 226, .08);
  color: #174d9e;
}

.tn-auth-back {
  display: inline-flex;
  margin-top: 24px;
  color: var(--tn-auth-blue-dark);
  font-size: .88rem;
  font-weight: 750;
}

.tn-auth-security-note {
  padding-top: 18px;
  margin-top: 22px;
  border-top: 1px solid #e4eaf3;
  color: #6b7789;
  font-size: .8rem;
  line-height: 1.5;
}

html.tn-auth-pending body {
  overflow: hidden;
}

.tn-secure-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 25%, rgba(20, 198, 204, .20), transparent 33%),
    #f4f8ff;
}

.tn-secure-loading[hidden] {
  display: none;
}

.tn-secure-loading-card {
  width: min(100%, 450px);
  padding: 36px;
  border: 1px solid rgba(0, 74, 173, .13);
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 74, 173, .13);
}

.tn-secure-loading-logo {
  width: min(230px, 75%);
  height: auto;
  margin-bottom: 22px;
}

.tn-secure-loading-card h1 {
  margin: 0 0 10px;
  color: #10234a;
  font-size: 1.5rem;
}

.tn-secure-loading-card p {
  margin: 0 0 20px;
  color: #64748b;
  line-height: 1.55;
}

.tn-secure-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border: 4px solid rgba(35, 101, 226, .16);
  border-top-color: #2365E2;
  border-radius: 50%;
  animation: tn-auth-spin .8s linear infinite;
}

@keyframes tn-auth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 840px) {
  .tn-auth-page {
    display: block;
  }

  .tn-auth-brand-panel {
    min-height: auto;
    padding: 28px 24px 34px;
    gap: 34px;
  }

  .tn-auth-logo {
    width: min(260px, 75%);
  }

  .tn-auth-brand-copy h1 {
    font-size: 2.1rem;
  }

  .tn-auth-brand-foot {
    display: none;
  }

  .tn-auth-form-panel {
    padding: 28px 18px 48px;
  }
}
