:root {
  --ats-navy: #172033;
  --ats-navy-soft: #26334a;
  --ats-blue: #2563eb;
  --ats-blue-dark: #1d4ed8;
  --ats-blue-soft: #eff6ff;
  --ats-text: #172033;
  --ats-text-soft: #5f6b7a;
  --ats-muted: #8a94a3;
  --ats-border: #e4e8ee;
  --ats-surface: #ffffff;
  --ats-background: #f4f6f9;
  --ats-success: #16a36a;
  --ats-radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ats-text);
  background: var(--ats-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.ats-login-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f8fa 0%, #f1f4f7 100%);
}

/* =========================================================
   BACKGROUND
========================================================= */

.ats-login-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ats-background-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.ats-background-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}

.glow-one {
  width: 420px;
  height: 420px;
  top: -180px;
  left: -130px;
  background: rgba(37, 99, 235, 0.12);
}

.glow-two {
  width: 360px;
  height: 360px;
  right: -140px;
  bottom: -140px;
  background: rgba(30, 64, 175, 0.08);
}

/* =========================================================
   TOP BAR
========================================================= */

.ats-login-topbar {
  position: relative;
  z-index: 5;

  height: 72px;
  padding: 0 42px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ats-topbar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ats-topbar-brand img {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.ats-topbar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ats-topbar-brand-text strong {
  font-size: 13px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ats-navy);
}

.ats-topbar-brand-text span {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--ats-muted);
  letter-spacing: 0.04em;
}

.ats-portal-link {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 7px 11px;

  color: var(--ats-text);
  text-decoration: none;

  border: 1px solid transparent;
  border-radius: 9px;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.ats-portal-link:hover {
  color: var(--ats-text);
  text-decoration: none;
  background: #f7f9fc;
  border-color: var(--ats-border);
  transform: translateY(-1px);
}

.ats-portal-icon {
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  background: #f1f5f9;
  color: var(--ats-navy);
  font-size: 12px;
}

.ats-portal-link > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ats-portal-link small {
  font-size: 9px;
  line-height: 1;
  font-weight: 500;
  color: var(--ats-muted);
  letter-spacing: 0.06em;
}

.ats-portal-link strong {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

.ats-portal-link > .fas {
  margin-left: 3px;
  font-size: 10px;
  color: var(--ats-muted);
}

/* =========================================================
   LOGIN CONTENT
========================================================= */

.ats-login-content {
  position: relative;
  z-index: 2;

  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 28px 34px 30px;
}

.ats-login-container {
  width: min(1080px, 100%);

  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);

  min-height: 570px;

  background: var(--ats-surface);

  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 18px;

  overflow: hidden;

  box-shadow:
    0 22px 55px rgba(23, 32, 51, 0.1),
    0 4px 14px rgba(23, 32, 51, 0.04);
}

/* =========================================================
   INTRO PANEL
========================================================= */

.ats-intro-panel {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 48px 52px 30px;

  color: #ffffff;

  background: linear-gradient(145deg, #182238 0%, #1d2a42 54%, #22324c 100%);

  overflow: hidden;
}

.ats-intro-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -220px;
  top: -210px;

  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.ats-intro-panel::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -275px;
  top: -260px;

  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
}

.ats-intro-content {
  position: relative;
  z-index: 2;
}

.ats-product-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
}

.ats-product-icon {
  width: 39px;
  height: 39px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);

  color: #ffffff;
  font-size: 14px;
}

.ats-product-mark > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ats-product-mark small {
  font-size: 8px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: rgba(255, 255, 255, 0.5);
}

.ats-product-mark strong {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.ats-intro-heading {
  max-width: 530px;
}

.ats-intro-label {
  display: inline-block;

  margin-bottom: 12px;

  font-size: 9px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.14em;

  color: rgba(255, 255, 255, 0.46);
}

.ats-intro-heading h1 {
  margin: 0;

  max-width: 500px;

  font-size: clamp(35px, 3.2vw, 48px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.035em;

  color: #ffffff;
}

.ats-intro-heading h1 span {
  color: #8eb7ff;
  font-weight: 650;
}

.ats-intro-heading p {
  max-width: 500px;

  margin: 17px 0 0;

  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;

  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   PIPELINE
========================================================= */

.ats-pipeline {
  display: flex;
  align-items: center;

  width: 100%;
  max-width: 560px;

  margin-top: 36px;
}

.ats-pipeline-item {
  display: flex;
  align-items: center;
  gap: 7px;

  white-space: nowrap;

  color: rgba(255, 255, 255, 0.45);

  font-size: 10px;
  font-weight: 500;
}

.ats-pipeline-item.active {
  color: rgba(255, 255, 255, 0.92);
}

.pipeline-icon {
  width: 27px;
  height: 27px;

  flex: 0 0 27px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);

  font-size: 9px;
}

.ats-pipeline-item.active .pipeline-icon {
  background: rgba(142, 183, 255, 0.13);
  border-color: rgba(142, 183, 255, 0.22);
  color: #a8c7ff;
}

.pipeline-line {
  flex: 1;
  min-width: 15px;
  height: 1px;
  margin: 0 7px;
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   INTRO FOOTER
========================================================= */

.ats-intro-footer {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ats-security-status {
  display: flex;
  align-items: center;
  gap: 7px;

  font-size: 9px;
  font-weight: 500;

  color: rgba(255, 255, 255, 0.43);
}

.status-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #45c58c;

  box-shadow: 0 0 0 3px rgba(69, 197, 140, 0.1);
}

.ats-intro-version {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.32);
}

/* =========================================================
   AUTH PANEL
========================================================= */

.ats-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 34px 42px;

  background: #ffffff;
}

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

.ats-auth-header {
  margin-bottom: 27px;
}

.ats-mobile-logo {
  display: none;
}

.ats-auth-eyebrow {
  display: block;

  margin-bottom: 8px;

  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.13em;

  color: var(--ats-blue);
}

.ats-auth-header h2 {
  margin: 0;

  font-size: 29px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.025em;

  color: var(--ats-navy);
}

.ats-auth-header p {
  margin: 7px 0 0;

  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;

  color: var(--ats-text-soft);
}

/* =========================================================
   FIELDS
========================================================= */

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

.ats-field label {
  display: block;

  margin-bottom: 7px;

  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;

  color: #394559;
}

.ats-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ats-field-input {
  position: relative;
  display: flex;
  align-items: center;
}

.ats-field-input > i {
  position: absolute;
  left: 14px;
  z-index: 2;

  font-size: 12px;
  color: #9aa4b2;

  pointer-events: none;
}

.ats-field-input input {
  width: 100%;
  height: 46px;

  padding: 0 42px;

  border: 1px solid #dfe4eb;
  border-radius: 9px;

  outline: none;

  background: #fbfcfd;

  color: var(--ats-text);

  font-size: 12px;
  font-weight: 400;

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.ats-field-input input::placeholder {
  color: #a5adba;
  font-weight: 400;
}

.ats-field-input input:hover {
  border-color: #cbd3df;
}

.ats-field-input input:focus {
  background: #ffffff;
  border-color: var(--ats-blue);

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.toggle-password {
  position: absolute;
  right: 8px;

  width: 31px;
  height: 31px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  background: transparent;
  color: #9aa4b2;

  cursor: pointer;

  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.toggle-password:hover {
  background: #f1f4f8;
  color: var(--ats-navy);
}

/* =========================================================
   LOGIN OPTIONS
========================================================= */

.ats-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 2px;
  margin-bottom: 19px;
}

.ats-remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin: 0;

  cursor: pointer;

  font-size: 10px;
  line-height: 1;
  font-weight: 500;

  color: #697586;
}

.ats-remember input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ats-checkmark {
  width: 15px;
  height: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #cbd3df;
  border-radius: 4px;

  background: #ffffff;

  color: #ffffff;

  font-size: 7px;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.ats-remember input:checked + .ats-checkmark {
  background: var(--ats-blue);
  border-color: var(--ats-blue);
}

.ats-forgot-link {
  padding: 0;

  background: transparent;

  color: var(--ats-blue);

  font-size: 10px;
  font-weight: 600;

  cursor: pointer;

  transition: color 0.15s ease;
}

.ats-forgot-link:hover {
  color: var(--ats-blue-dark);
  text-decoration: underline;
}

/* =========================================================
   LOGIN BUTTON
========================================================= */

.ats-login-button {
  width: 100%;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 7px 0 17px;

  border-radius: 9px;

  background: var(--ats-blue);
  color: #ffffff;

  font-size: 12px;
  font-weight: 600;

  cursor: pointer;

  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.16);

  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.ats-login-button:hover {
  background: var(--ats-blue-dark);

  transform: translateY(-1px);

  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.2);
}

.ats-login-button:active {
  transform: translateY(0);
}

.ats-login-button:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

.ats-login-button-text {
  font-weight: 600;
}

.ats-login-button-icon {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  background: rgba(255, 255, 255, 0.13);

  font-size: 10px;
}

.ats-login-button.loading {
  justify-content: center;
  gap: 9px;
  padding: 0;
}

/* =========================================================
   SECURITY MESSAGE
========================================================= */

.ats-secure-message {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 23px;
  padding: 11px 12px;

  border: 1px solid #e8edf3;
  border-radius: 9px;

  background: #fafbfd;
}

.ats-secure-icon {
  width: 29px;
  height: 29px;

  flex: 0 0 29px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  background: var(--ats-blue-soft);
  color: var(--ats-blue);

  font-size: 10px;
}

.ats-secure-message > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ats-secure-message strong {
  font-size: 9px;
  line-height: 1.2;
  font-weight: 600;
  color: #4a5668;
}

.ats-secure-message span {
  font-size: 9px;
  line-height: 1.3;
  font-weight: 400;
  color: #8b95a3;
}

/* =========================================================
   AUTH FOOTER
========================================================= */

.ats-auth-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;

  margin-top: 20px;

  font-size: 8px;
  line-height: 1.3;
  font-weight: 500;

  color: #a0a8b4;
}

.ats-footer-separator {
  color: #c5cbd3;
}

.ats-version-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  margin-left: auto;
  padding: 4px 6px;

  border-radius: 5px;

  background: transparent;

  color: #9aa4b1;

  font-size: 8px;
  font-weight: 500;

  cursor: pointer;

  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.ats-version-button:hover {
  background: #f4f6f8;
  color: var(--ats-navy);
}

.ats-version-button i {
  font-size: 8px;
}

/* =========================================================
   SWEETALERT BASE
========================================================= */

.swal2-container {
  padding: 18px !important;
}

.ats-swal-popup,
.ats-auth-popup,
.ats-error-popup,
.ats-forgot-popup {
  border-radius: 14px !important;
  overflow: hidden !important;

  box-shadow:
    0 25px 60px rgba(23, 32, 51, 0.16),
    0 5px 18px rgba(23, 32, 51, 0.08) !important;
}

.ats-swal-popup .swal2-title,
.ats-error-popup .swal2-title,
.ats-forgot-popup .swal2-title {
  font-size: 20px !important;
  font-weight: 650 !important;
  color: var(--ats-navy) !important;
}

.ats-swal-popup .swal2-html-container,
.ats-error-popup .swal2-html-container,
.ats-forgot-popup .swal2-html-container {
  font-size: 12px !important;
  color: var(--ats-text-soft) !important;
}

/* =========================================================
   AUTHENTICATION POPUP
========================================================= */

.ats-authentication {
  padding: 25px 27px 22px;
  text-align: left;
}

.ats-authentication-header {
  display: flex;
  align-items: center;
  gap: 10px;

  padding-bottom: 17px;

  border-bottom: 1px solid #edf0f4;
}

.ats-authentication-logo {
  width: 35px;
  height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: #f5f7fa;
}

.ats-authentication-logo img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.ats-authentication-header > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ats-authentication-header small {
  font-size: 8px;
  line-height: 1;
  font-weight: 500;
  color: #9aa4b1;
  letter-spacing: 0.08em;
}

.ats-authentication-header strong {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ats-navy);
}

.ats-authentication-loader {
  display: flex;
  justify-content: center;

  margin: 22px 0 14px;
}

.ats-loader-circle {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #dce7fb;
  border-radius: 50%;

  background: #f4f8ff;

  color: var(--ats-blue);

  font-size: 16px;

  box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.035);

  animation: atsPulse 1.8s ease-in-out infinite;
}

@keyframes atsPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

.ats-authentication h3 {
  margin: 0;

  text-align: center;

  font-size: 17px;
  line-height: 1.25;
  font-weight: 650;

  color: var(--ats-navy);
}

.ats-authentication > p {
  margin: 6px auto 18px;

  max-width: 300px;

  text-align: center;

  font-size: 10px;
  line-height: 1.5;
  font-weight: 400;

  color: #8b95a3;
}

.ats-authentication-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ats-auth-step {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 9px 10px;

  border: 1px solid #edf0f4;
  border-radius: 8px;

  background: #fafbfd;

  opacity: 0.48;

  transition:
    opacity 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.ats-auth-step.active {
  opacity: 1;

  border-color: #dce7fb;
  background: #f7faff;
}

.ats-auth-step > span {
  width: 27px;
  height: 27px;

  flex: 0 0 27px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  background: #eef2f6;
  color: #8c97a5;

  font-size: 9px;
}

.ats-auth-step.active > span {
  background: #eaf2ff;
  color: var(--ats-blue);
}

.ats-auth-step > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ats-auth-step strong {
  font-size: 9px;
  line-height: 1.2;
  font-weight: 600;
  color: #4a5668;
}

.ats-auth-step small {
  font-size: 8px;
  line-height: 1.2;
  font-weight: 400;
  color: #9aa4b1;
}

.ats-authentication-footer {
  margin-top: 17px;
  padding-top: 13px;

  border-top: 1px solid #edf0f4;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  font-size: 8px;
  font-weight: 500;

  color: #a0a8b4;
}

.ats-authentication-footer i {
  color: var(--ats-blue);
}

/* =========================================================
   LOGIN SUCCESS
========================================================= */

.ats-login-success {
  padding: 32px 26px;
  text-align: center;
}

.ats-success-icon {
  width: 58px;
  height: 58px;

  margin: 0 auto 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #eaf8f1;
  color: var(--ats-success);

  font-size: 20px;

  box-shadow: 0 0 0 8px rgba(22, 163, 106, 0.045);
}

.ats-success-label {
  display: block;

  margin-bottom: 7px;

  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;

  color: var(--ats-success);
}

.ats-login-success h3 {
  margin: 0;

  font-size: 20px;
  line-height: 1.25;
  font-weight: 650;

  color: var(--ats-navy);
}

.ats-login-success p {
  margin: 7px 0 0;

  font-size: 10px;
  line-height: 1.5;
  color: #8b95a3;
}

.ats-success-loading {
  width: 100%;
  height: 3px;

  margin-top: 22px;

  overflow: hidden;

  border-radius: 3px;
  background: #edf1f5;
}

.ats-success-loading span {
  display: block;

  width: 40%;
  height: 100%;

  border-radius: inherit;

  background: var(--ats-blue);

  animation: atsSuccessLoading 1s ease forwards;
}

@keyframes atsSuccessLoading {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(250%);
  }
}

/* =========================================================
   LOGIN ERROR
========================================================= */

.ats-login-error {
  text-align: left;
}

.ats-login-error > p {
  margin: 0 0 12px;

  font-size: 11px;
  line-height: 1.5;
  color: #687486;
}

.ats-login-error-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;

  padding: 10px;

  border: 1px solid #edf0f4;
  border-radius: 8px;

  background: #fafbfd;
}

.ats-login-error-note i {
  margin-top: 1px;

  font-size: 10px;
  color: var(--ats-blue);
}

.ats-login-error-note span {
  font-size: 9px;
  line-height: 1.45;
  color: #8b95a3;
}

.ats-error-button {
  border-radius: 8px !important;

  padding: 9px 17px !important;

  font-size: 10px !important;
  font-weight: 600 !important;
}

/* =========================================================
   RECOVERY
========================================================= */

.ats-recovery {
  text-align: left;
}

.ats-recovery-header {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 16px 19px;

  border-bottom: 1px solid #edf0f4;

  background: #fbfcfd;
}

.ats-recovery-brand {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: #ffffff;
  border: 1px solid #e8edf3;
}

.ats-recovery-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.ats-recovery-header > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ats-recovery-header small {
  font-size: 8px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #9aa4b1;
}

.ats-recovery-header strong {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ats-navy);
}

.ats-recovery-body {
  padding: 23px 25px 21px;
  text-align: center;
}

.ats-recovery-icon {
  width: 48px;
  height: 48px;

  margin: 0 auto 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #eef5ff;
  color: var(--ats-blue);

  font-size: 17px;
}

.ats-recovery-icon.otp {
  background: #f1f5ff;
}

.ats-recovery-label {
  display: block;

  margin-bottom: 7px;

  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.13em;

  color: var(--ats-blue);
}

.ats-recovery-body h3 {
  margin: 0;

  font-size: 19px;
  line-height: 1.25;
  font-weight: 650;

  color: var(--ats-navy);
}

.ats-recovery-body > p {
  margin: 7px auto 18px;

  max-width: 320px;

  font-size: 10px;
  line-height: 1.5;
  font-weight: 400;

  color: #8a94a2;
}

.ats-recovery-field {
  text-align: left;
  margin-bottom: 13px;
}

.ats-recovery-field label {
  display: block;

  margin-bottom: 6px;

  font-size: 10px;
  font-weight: 600;
  color: #4a5668;
}

.ats-recovery-input {
  position: relative;
}

.ats-recovery-input > i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 11px;
  color: #9aa4b1;

  pointer-events: none;
}

.ats-recovery-input input {
  width: 100%;
  height: 43px;

  padding: 0 12px 0 37px;

  border: 1px solid #dfe4eb;
  border-radius: 8px;

  outline: none;

  background: #fbfcfd;

  font-size: 11px;
  font-weight: 400;

  color: var(--ats-text);

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.ats-recovery-input input:focus {
  background: #ffffff;
  border-color: var(--ats-blue);

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.ats-recovery-input input::placeholder {
  color: #a5adba;
}

.ats-recovery-button {
  width: 100%;
  height: 43px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border-radius: 8px;

  background: var(--ats-blue);
  color: #ffffff;

  font-size: 10px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.ats-recovery-button:hover {
  background: var(--ats-blue-dark);
  transform: translateY(-1px);
}

.ats-recovery-button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  transform: none;
}

.ats-recovery-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  margin-top: 12px;
  padding: 0;

  background: transparent;

  color: #7e8998;

  font-size: 9px;
  font-weight: 500;

  cursor: pointer;
}

.ats-recovery-back:hover {
  color: var(--ats-navy);
}

.ats-recovery-security {
  display: flex;
  align-items: flex-start;
  gap: 7px;

  margin-top: 17px;
  padding: 9px 10px;

  border: 1px solid #edf0f4;
  border-radius: 8px;

  background: #fafbfd;

  text-align: left;
}

.ats-recovery-security i {
  margin-top: 1px;

  font-size: 9px;
  color: var(--ats-blue);
}

.ats-recovery-security span {
  font-size: 8px;
  line-height: 1.45;
  font-weight: 400;
  color: #929ca9;
}

/* =========================================================
   OTP
========================================================= */

.ats-otp-field {
  margin: 15px 0 10px;
}

.ats-otp-field input {
  width: 100%;
  height: 50px;

  padding: 0 15px;

  border: 1px solid #dce3ed;
  border-radius: 9px;

  outline: none;

  background: #fbfcfe;

  text-align: center;

  font-size: 21px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.24em;

  color: var(--ats-navy);

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.ats-otp-field input:focus {
  background: #ffffff;
  border-color: var(--ats-blue);

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.ats-otp-field input::placeholder {
  color: #c1c8d2;
}

.ats-otp-status {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 13px;

  font-size: 9px;
  color: #8d97a5;
}

.ats-otp-status span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ats-otp-status i {
  color: var(--ats-blue);
}

.ats-otp-status strong {
  font-size: 10px;
  font-weight: 650;
  color: var(--ats-navy);
}

.ats-otp-expired {
  margin-bottom: 12px;
  padding: 9px 10px;

  border: 1px solid #f4d8d8;
  border-radius: 8px;

  background: #fff8f8;

  text-align: left;

  font-size: 8px;
  line-height: 1.45;
  color: #a45a5a;
}

.ats-otp-expired i {
  margin-right: 4px;
}

/* =========================================================
   GENERATING
========================================================= */

.ats-generating {
  padding: 31px 27px;

  text-align: center;
}

.ats-generating-icon {
  width: 52px;
  height: 52px;

  margin: 0 auto 13px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #eef5ff;
  color: var(--ats-blue);

  font-size: 16px;
}

.ats-generating > span {
  display: block;

  margin-bottom: 7px;

  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;

  color: var(--ats-blue);
}

.ats-generating h3 {
  margin: 0;

  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;

  color: var(--ats-navy);
}

.ats-generating p {
  max-width: 310px;

  margin: 7px auto 18px;

  font-size: 10px;
  line-height: 1.5;
  color: #8b95a3;
}

.ats-progress {
  width: 100%;
  height: 3px;

  overflow: hidden;

  border-radius: 3px;
  background: #edf1f5;
}

.ats-progress span {
  display: block;

  width: 38%;
  height: 100%;

  background: var(--ats-blue);

  animation: atsProgress 1.5s ease-in-out infinite;
}

@keyframes atsProgress {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(360%);
  }
}

/* =========================================================
   PASSWORD RESULT
========================================================= */

.ats-password-result {
  padding: 25px 25px 22px;

  text-align: center;
}

.ats-password-success {
  width: 49px;
  height: 49px;

  margin: 0 auto 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #eaf8f1;
  color: var(--ats-success);

  font-size: 16px;
}

.ats-password-result .ats-success-label {
  margin-bottom: 7px;
}

.ats-password-result h3 {
  margin: 0;

  font-size: 18px;
  line-height: 1.25;
  font-weight: 650;

  color: var(--ats-navy);
}

.ats-password-result > p {
  margin: 7px auto 16px;

  max-width: 330px;

  font-size: 10px;
  line-height: 1.5;
  color: #8b95a3;
}

.ats-temp-password-box {
  padding: 13px;

  border: 1px solid #dce7fb;
  border-radius: 9px;

  background: #f7faff;
}

.ats-temp-password-box > span {
  display: block;

  margin-bottom: 6px;

  font-size: 7px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;

  color: #7c8ca3;
}

.ats-temp-password-box > strong {
  display: block;

  margin-bottom: 10px;

  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;

  color: var(--ats-navy);

  word-break: break-all;
}

.ats-copy-button {
  height: 32px;

  padding: 0 11px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 1px solid #d8e0eb;
  border-radius: 7px;

  background: #ffffff;
  color: #536174;

  font-size: 9px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.ats-copy-button:hover {
  border-color: #c8d4e5;
  background: #f8fafc;
  color: var(--ats-navy);
}

.ats-copy-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ats-password-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;

  margin-top: 11px;
  padding: 9px 10px;

  border: 1px solid #f0e4c8;
  border-radius: 8px;

  background: #fffaf0;

  text-align: left;
}

.ats-password-warning i {
  margin-top: 1px;

  font-size: 9px;
  color: #c38a25;
}

.ats-password-warning span {
  font-size: 8px;
  line-height: 1.45;
  color: #92794d;
}

.ats-password-warning strong {
  font-weight: 650;
}

/* =========================================================
   INPUT ERROR
========================================================= */

.ats-input-error {
  border-color: #dc5a5a !important;

  box-shadow: 0 0 0 3px rgba(220, 90, 90, 0.08) !important;

  animation: atsInputShake 0.3s ease;
}

@keyframes atsInputShake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

/* =========================================================
   AUTOFILL
========================================================= */

.ats-field-input input:-webkit-autofill,
.ats-recovery-input input:-webkit-autofill {
  -webkit-text-fill-color: var(--ats-text);
  box-shadow: 0 0 0 1000px #fbfcfd inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {
  .ats-login-topbar {
    height: 66px;
    padding: 0 25px;
  }

  .ats-login-content {
    min-height: calc(100vh - 66px);
    min-height: calc(100dvh - 66px);
    padding: 22px;
  }

  .ats-login-container {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
    min-height: 535px;
  }

  .ats-intro-panel {
    padding: 38px 38px 25px;
  }

  .ats-product-mark {
    margin-bottom: 34px;
  }

  .ats-intro-heading h1 {
    font-size: 37px;
  }

  .ats-pipeline {
    margin-top: 29px;
  }

  .ats-pipeline-item {
    font-size: 9px;
  }

  .pipeline-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .ats-auth-panel {
    padding: 30px;
  }
}

/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 760px) {
  .ats-login-page {
    overflow: auto;
  }

  .ats-login-topbar {
    height: 62px;
    padding: 0 18px;
  }

  .ats-topbar-brand img {
    width: 33px;
    height: 33px;
  }

  .ats-topbar-brand-text strong {
    font-size: 12px;
  }

  .ats-topbar-brand-text span {
    font-size: 9px;
  }

  .ats-portal-link {
    padding: 6px;
  }

  .ats-portal-link > span:nth-child(2) {
    display: none;
  }

  .ats-portal-link > .fas {
    margin-left: 0;
  }

  .ats-login-content {
    min-height: calc(100vh - 62px);
    min-height: calc(100dvh - 62px);

    padding: 18px;
  }

  .ats-login-container {
    grid-template-columns: 1fr;
    max-width: 540px;
    min-height: auto;
  }

  .ats-intro-panel {
    min-height: 290px;
    padding: 28px 30px 23px;
  }

  .ats-product-mark {
    margin-bottom: 24px;
  }

  .ats-intro-heading h1 {
    font-size: 32px;
  }

  .ats-intro-heading p {
    max-width: 460px;
    font-size: 12px;
  }

  .ats-pipeline {
    margin-top: 23px;
  }

  .ats-intro-footer {
    margin-top: 26px;
  }

  .ats-auth-panel {
    padding: 32px 30px 28px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {
  .ats-login-topbar {
    padding: 0 15px;
  }

  .ats-login-content {
    padding: 12px;
  }

  .ats-login-container {
    border-radius: 13px;
  }

  .ats-intro-panel {
    min-height: 260px;
    padding: 24px 23px 20px;
  }

  .ats-product-mark {
    margin-bottom: 21px;
  }

  .ats-product-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 12px;
  }

  .ats-product-mark small {
    font-size: 7px;
  }

  .ats-product-mark strong {
    font-size: 10px;
  }

  .ats-intro-heading h1 {
    font-size: 28px;
  }

  .ats-intro-heading p {
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.55;
  }

  .ats-pipeline {
    margin-top: 19px;
  }

  .ats-pipeline-item {
    gap: 0;
    font-size: 0;
  }

  .pipeline-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .pipeline-line {
    margin: 0 5px;
  }

  .ats-security-status {
    font-size: 8px;
  }

  .ats-intro-version {
    font-size: 8px;
  }

  .ats-auth-panel {
    padding: 27px 21px 23px;
  }

  .ats-auth-header {
    margin-bottom: 23px;
  }

  .ats-auth-eyebrow {
    font-size: 8px;
  }

  .ats-auth-header h2 {
    font-size: 25px;
  }

  .ats-auth-header p {
    font-size: 10px;
  }

  .ats-field {
    margin-bottom: 15px;
  }

  .ats-field-input input {
    height: 44px;
  }

  .ats-login-options {
    margin-bottom: 17px;
  }

  .ats-login-button {
    height: 44px;
  }

  .ats-secure-message {
    margin-top: 20px;
    padding: 9px 10px;
  }

  .ats-auth-footer {
    margin-top: 17px;
    gap: 5px;
  }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
  .ats-intro-panel {
    min-height: 240px;
  }

  .ats-intro-heading h1 {
    font-size: 25px;
  }

  .ats-intro-heading p {
    display: none;
  }

  .ats-pipeline {
    margin-top: 17px;
  }

  .ats-auth-panel {
    padding: 24px 18px 20px;
  }

  .ats-auth-header h2 {
    font-size: 23px;
  }

  .ats-secure-message {
    display: none;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
