.trainai-auth {
  --auth-blue: #0b63f6;
  --auth-navy: #071b42;
  --auth-muted: #667b9d;
  --auth-border: #d9e6f5;
  --auth-soft: #eaf3ff;
  min-height: 100vh;
  background: radial-gradient(circle at 8% 42%, #dceeff 0, transparent 22%), radial-gradient(circle at 96% 58%, #dceeff 0, transparent 25%), #f5f9ff;
  color: #304565;
  overflow-x: hidden;
}
.ta-auth-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  box-sizing: border-box;
}
.ta-auth-header {
  position: relative;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid var(--auth-border);
}
.ta-auth-header-inner {
  min-height: 65px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ta-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-navy);
  text-decoration: none;
}
.ta-auth-logo {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--auth-blue);
}
.ta-auth-logo svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ta-auth-brand strong {
  display: block;
  font-size: 19px;
  line-height: 1;
}
.ta-auth-brand strong span {
  color: var(--auth-blue);
}
.ta-auth-brand small {
  display: block;
  margin-top: 3px;
  color: var(--auth-muted);
  font-size: 8px;
  letter-spacing: .06em;
  line-height: 1;
}
.ta-auth-nav {
  display: flex;
  gap: 27px;
  margin-left: 36px;
}
.ta-auth-nav a,
.ta-auth-nav-actions a {
  color: var(--auth-navy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.ta-auth-nav a:hover,
.ta-auth-nav-actions a:hover {
  color: var(--auth-blue);
}
.ta-auth-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.ta-auth-small-cta {
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--auth-blue);
  color: #fff !important;
  box-shadow: 0 5px 12px #0b63f633;
}
.ta-auth-menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: none;
  padding: 8px;
  cursor: pointer;
}
.ta-auth-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px;
  background: var(--auth-navy);
}
.ta-auth-mobile-menu {
  display: none;
}
.ta-auth-main {
  position: relative;
  min-height: calc(100vh - 65px);
  padding: 35px 0 50px;
}
.ta-auth-grid {
  display: grid;
  grid-template-columns: 440px 380px;
  align-items: center;
  justify-content: center;
  gap: 60px;
  min-height: 620px;
}
.ta-auth-card {
  padding: 32px 32px 28px;
  border: 1px solid #e0eaf6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 15px 38px #345d8914;
  box-sizing: border-box;
}
.ta-auth-card-heading {
  text-align: center;
}
.ta-auth-card h1 {
  margin: 0;
  color: var(--auth-navy);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.6px;
  text-transform: capitalize;
}
.ta-auth-description {
  margin-top: 6px;
  color: var(--auth-muted);
  font-size: 13.5px;
}
.ta-auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}
.ta-auth-alert > span {
  min-width: 0;
  flex: 1;
}
.ta-auth-alert:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}
.ta-auth-alert-icon {
  flex: 0 0 auto;
  color: #dc2626;
  width: 18px;
  height: 18px;
}
.ta-auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  text-align: left;
}
.ta-auth-field {
  min-width: 0;
}
.ta-auth-label {
  display: block;
  margin: 0 0 6px;
  color: var(--auth-navy);
  font-size: 13.5px;
  font-weight: 700;
}
.ta-auth-optional {
  color: var(--auth-muted);
  font-weight: 400;
  font-size: 12px;
}
.ta-auth-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--auth-border);
  border-radius: 8px;
  background: #fff;
  color: var(--auth-navy);
  font-size: 14.5px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ta-auth-input::placeholder {
  color: #97a8bf;
  font-size: 14px;
}
.ta-auth-input:focus {
  border-color: var(--auth-blue);
  outline: 3px solid rgba(11, 99, 246, 0.16);
}
.ta-auth-input[aria-invalid="true"] {
  border-color: #ef4444;
  background: #fffcfc;
}
.ta-auth-input[aria-invalid="true"]:focus {
  border-color: #dc2626;
  outline: 3px solid rgba(239, 68, 68, 0.18);
}
.ta-auth-password {
  position: relative;
}
.ta-auth-password .ta-auth-input {
  padding-right: 52px;
}
.ta-auth-password-toggle {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.ta-auth-password-toggle:hover {
  color: var(--auth-blue);
  background: var(--auth-soft);
}
.ta-auth-password-toggle:focus-visible {
  outline: 2px solid var(--auth-blue);
  outline-offset: 1px;
}
.ta-auth-password-toggle[hidden] {
  display: none;
}
.ta-auth-password-toggle .ta-auth-eye-icon {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.ta-auth-password-toggle .ta-auth-eye-hide {
  display: none;
}
.ta-auth-password-toggle[aria-pressed="true"] .ta-auth-eye-show {
  display: none;
}
.ta-auth-password-toggle[aria-pressed="true"] .ta-auth-eye-hide {
  display: block;
}
.ta-auth-phone {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ta-auth-dial {
  flex: 0 0 auto;
  color: var(--auth-blue);
  font-size: 13px;
  font-weight: 700;
}
.ta-auth-phone .ta-auth-input {
  flex: 1;
  min-width: 0;
}
.ta-auth-hint {
  margin-top: 5px;
  color: var(--auth-muted);
  font-size: 11.5px;
  line-height: 1.35;
}
.ta-auth-error {
  min-height: 0;
  margin: 5px 0 0;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}
.ta-auth-error:empty {
  display: none;
}
.ta-auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--auth-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(11, 99, 246, 0.22);
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.ta-auth-submit:hover {
  background: #0755d9;
}
.ta-auth-submit:active {
  transform: translateY(1px);
}
.ta-auth-submit:focus-visible {
  outline: 3px solid rgba(11, 99, 246, 0.4);
  outline-offset: 2px;
}
.ta-auth-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.ta-auth-switch {
  margin-top: 20px;
  color: var(--auth-muted);
  font-size: 13px;
  text-align: center;
}
.ta-auth-switch a {
  color: var(--auth-blue);
  font-weight: 700;
  text-decoration: none;
}
.ta-auth-switch a:hover {
  text-decoration: underline;
}
.ta-auth-promo {
  position: relative;
  max-width: 380px;
  padding: 26px 0;
}
.ta-auth-promo:before,
.ta-auth-promo:after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: rgba(216, 235, 255, 0.6);
  pointer-events: none;
}
.ta-auth-promo:before {
  width: 210px;
  height: 310px;
  right: -60px;
  top: -45px;
}
.ta-auth-promo:after {
  width: 160px;
  height: 90px;
  left: -45px;
  bottom: -35px;
  transform: rotate(-25deg);
}
.ta-auth-promo > * {
  position: relative;
  z-index: 1;
}
.ta-auth-promo-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: #dcebff;
  color: var(--auth-blue);
  font-size: 11px;
  font-weight: 700;
}
.ta-auth-promo h2 {
  margin-top: 20px;
  color: var(--auth-navy);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
}
.ta-auth-promo p {
  max-width: 320px;
  margin-top: 14px;
  color: #476284;
  font-size: 14.5px;
  line-height: 1.55;
}
.ta-auth-promo ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.ta-auth-promo li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--auth-navy);
  font-size: 13.5px;
  font-weight: 700;
}
.ta-auth-promo li span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5f1ff;
  color: var(--auth-blue);
  font-size: 18px;
}
.ta-auth-promo.is-register h2 {
  margin-top: 20px;
}
.ta-auth-promo.is-register p {
  max-width: 320px;
}
.ta-auth-promo.is-login h2 {
  font-size: 32px;
}
.ta-auth-promo.is-login ul {
  margin-top: 20px;
}
.ta-auth-robot-wrap {
  margin-top: 22px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.ta-auth-robot {
  display: inline-block;
  width: 100%;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(11, 99, 246, 0.12));
}

@media (max-width: 767px) {
  .ta-auth-container {
    width: calc(100% - 24px);
  }
  .ta-auth-header-inner {
    min-height: 60px;
    gap: 16px;
  }
  .ta-auth-nav,
  .ta-auth-nav-actions {
    display: none;
  }
  .ta-auth-menu-toggle {
    display: block;
  }
  .ta-auth-mobile-menu {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 58px;
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(52, 93, 137, 0.15);
  }
  .ta-auth-mobile-menu[hidden] {
    display: none;
  }
  .ta-auth-mobile-menu a {
    padding: 9px 11px;
    color: var(--auth-navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }
  .ta-auth-mobile-menu a:hover {
    background: var(--auth-soft);
    color: var(--auth-blue);
  }
  .ta-auth-main {
    padding: 20px 0 28px;
  }
  .ta-auth-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    align-items: stretch;
  }
  .ta-auth-card {
    padding: 22px 16px 20px;
    border-radius: 12px;
  }
  .ta-auth-card h1 {
    font-size: 22px;
  }
  .ta-auth-description {
    font-size: 12px;
  }
  .ta-auth-form {
    gap: 12px;
    margin-top: 16px;
  }
  .ta-auth-label {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .ta-auth-input {
    min-height: 44px;
    font-size: 13.5px;
    padding: 10px 12px;
  }
  .ta-auth-input::placeholder {
    font-size: 13px;
  }
  .ta-auth-password-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    right: 2px;
  }
  .ta-auth-submit {
    min-height: 46px;
    font-size: 14px;
    margin-top: 6px;
  }
  .ta-auth-switch {
    font-size: 12px;
    margin-top: 16px;
  }
  .ta-auth-promo {
    max-width: none;
    padding: 18px 16px;
    border: 1px solid #dceafa;
    border-radius: 12px;
    background: #eaf3ff;
    overflow: hidden;
  }
  .ta-auth-promo:before {
    width: 100px;
    height: 100px;
    right: -15px;
    top: -18px;
  }
  .ta-auth-promo:after {
    width: 90px;
    height: 55px;
    left: -20px;
    bottom: -15px;
  }
  .ta-auth-promo h2,
  .ta-auth-promo.is-login h2 {
    margin-top: 12px;
    font-size: 22px;
  }
  .ta-auth-promo p {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.45;
  }
  .ta-auth-promo ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }
  .ta-auth-promo li {
    gap: 6px;
    font-size: 11px;
  }
  .ta-auth-promo li span {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  .ta-auth-robot-wrap {
    margin-top: 14px;
  }
  .ta-auth-robot {
    max-width: 120px;
  }
}
