/* =========================================================
   KUTAISI CARGO
   AUTH PAGES STYLES
   ========================================================= */

.auth-page {
  min-height: 100vh;
  color: var(--color-text);
  background: var(--color-light);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
}

/* =========================================================
   LEFT SHOWCASE
   ========================================================= */

.auth-showcase {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--color-white);
  background: var(--gradient-dark);
}

.auth-showcase-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-showcase-grid {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    );
  background-size: 64px 64px;
}

.auth-showcase-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.auth-showcase-glow-one {
  top: 8%;
  right: -90px;
  width: 390px;
  height: 390px;
  background: rgba(255, 122, 0, 0.2);
}

.auth-showcase-glow-two {
  left: -120px;
  bottom: -80px;
  width: 430px;
  height: 430px;
  background: rgba(42, 111, 184, 0.15);
}

.auth-showcase-road {
  position: absolute;
  right: -15%;
  bottom: 13%;
  width: 85%;
  height: 90px;
  transform: rotate(-8deg);
}

.auth-showcase-road::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.07),
    transparent
  );
}

.auth-showcase-road span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 28px,
    rgba(255, 255, 255, 0.32) 28px 76px
  );
}

.auth-showcase-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 54px clamp(42px, 6vw, 92px);
  display: flex;
  flex-direction: column;
}

.auth-brand {
  width: max-content;
}

.auth-showcase-main {
  max-width: 680px;
  margin-block: auto;
  padding: 70px 0;
}

.auth-showcase-badge {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: var(--radius-pill);
  color: var(--color-primary);
  background: rgba(255, 122, 0, 0.09);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-showcase-main h1 {
  margin-top: 24px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.auth-showcase-main h1 span {
  display: block;
  color: var(--color-primary);
}

.auth-showcase-main > p {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.8;
}

.auth-benefits {
  margin-top: 38px;
  display: grid;
  gap: 14px;
}

.auth-benefit-item {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.auth-benefit-item > span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--color-primary);
  background: rgba(255, 122, 0, 0.1);
}

.auth-benefit-item > div {
  display: flex;
  flex-direction: column;
}

.auth-benefit-item strong {
  font-size: 12px;
}

.auth-benefit-item small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 9px;
}

.auth-showcase-card {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.045);
}

.auth-showcase-card-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--color-dark);
  background: var(--color-primary);
}

.auth-showcase-card > div {
  display: flex;
  flex-direction: column;
}

.auth-showcase-card small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
}

.auth-showcase-card strong {
  margin-top: 3px;
  font-size: 11px;
}

/* =========================================================
   RIGHT FORM AREA
   ========================================================= */

.auth-form-section {
  min-height: 100vh;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 122, 0, 0.08),
      transparent 28%
    ),
    var(--color-light);
}

.auth-form-wrapper {
  width: min(470px, 100%);
}

.auth-form-wrapper-wide {
  width: min(620px, 100%);
}

.auth-mobile-header {
  display: none;
  margin-bottom: 34px;
}

.auth-mobile-header .brand-title {
  color: var(--color-text);
}

.auth-mobile-header .brand-subtitle {
  color: var(--color-text-soft);
}

.auth-form-heading {
  margin-bottom: 30px;
}

.auth-form-eyebrow {
  color: var(--color-primary-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form-heading h2 {
  margin-top: 9px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.auth-form-heading p {
  margin-top: 10px;
  color: var(--color-text-soft);
  font-size: 13px;
}

/* =========================================================
   FORM
   ========================================================= */

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form-group-full {
  grid-column: 1 / -1;
}

.auth-form-group label,
.auth-label-row label {
  font-size: 11px;
  font-weight: 800;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-label-row a {
  color: var(--color-primary-dark);
  font-size: 9px;
  font-weight: 800;
}

.auth-input-wrapper {
  position: relative;
}

.auth-input-wrapper > i {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 2;
  color: var(--color-primary-dark);
  transform: translateY(-50%);
  font-size: 13px;
}

.auth-input-wrapper input {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 44px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  outline: none;
  color: var(--color-text);
  background: var(--color-white);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.auth-input-wrapper input::placeholder {
  color: #9aa8b6;
}

.auth-input-wrapper input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.auth-input-wrapper input.auth-input-error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 4px rgba(230, 73, 73, 0.1);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--color-text-soft);
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--color-primary-dark);
  background: rgba(255, 122, 0, 0.08);
}

.auth-field-message {
  min-height: 15px;
  color: var(--color-danger);
  font-size: 9px;
  font-weight: 700;
}

.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--color-text-soft);
  font-size: 10px;
  cursor: pointer;
}

.auth-checkbox input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
  accent-color: var(--color-primary);
}

.auth-checkbox a {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.auth-security-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-success);
  font-size: 9px;
  font-weight: 800;
}

.auth-submit-button {
  margin-top: 4px;
  justify-content: flex-start;
}

.auth-submit-button > i:last-child {
  margin-left: auto;
}

.auth-form-message {
  min-height: 20px;
  color: var(--color-success);
  font-size: 10px;
  font-weight: 700;
}

.auth-form-message.error {
  color: var(--color-danger);
}

/* =========================================================
   DIVIDER AND SOCIAL AUTH
   ========================================================= */

.auth-divider {
  margin: 26px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-divider span {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-divider small {
  color: var(--color-text-soft);
  font-size: 9px;
}

.auth-social-button {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--color-text);
  background: var(--color-white);
  font-size: 11px;
  font-weight: 800;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.auth-social-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.36);
  box-shadow: var(--shadow-small);
}

.auth-social-button i {
  color: #ea4335;
  font-size: 16px;
}

.auth-footer-text {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 6px;
  color: var(--color-text-soft);
  font-size: 10px;
}

.auth-footer-text a {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.auth-back-link {
  width: max-content;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-soft);
  font-size: 9px;
  font-weight: 800;
}

.auth-back-link:hover {
  color: var(--color-primary-dark);
}

/* =========================================================
   PASSWORD STRENGTH
   ========================================================= */

.password-strength {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: var(--color-white);
}

.password-strength-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.password-strength-header span {
  color: var(--color-text-soft);
  font-size: 9px;
}

.password-strength-header strong {
  font-size: 9px;
}

.password-strength-bars {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.password-strength-bars span {
  height: 5px;
  border-radius: var(--radius-pill);
  background: #dce4eb;
  transition: background var(--transition-fast);
}

.password-strength[data-strength="1"]
.password-strength-bars span:nth-child(1) {
  background: var(--color-danger);
}

.password-strength[data-strength="2"]
.password-strength-bars span:nth-child(-n + 2) {
  background: var(--color-warning);
}

.password-strength[data-strength="3"]
.password-strength-bars span:nth-child(-n + 3) {
  background: var(--color-primary);
}

.password-strength[data-strength="4"]
.password-strength-bars span {
  background: var(--color-success);
}

.password-requirements {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.password-requirements li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-soft);
  font-size: 9px;
}

.password-requirements li i {
  font-size: 6px;
}

.password-requirements li.valid {
  color: var(--color-success);
}

.auth-agreement {
  margin-top: 2px;
}

.auth-marketing-checkbox {
  margin-top: -5px;
}

/* =========================================================
   LOADING STATE
   ========================================================= */

.auth-submit-button.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

.auth-submit-button.is-loading .btn-icon {
  animation: rotateSlow 0.8s linear infinite;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    display: none;
  }

  .auth-form-section {
    min-height: 100vh;
    padding: 42px 24px;
  }

  .auth-mobile-header {
    display: block;
  }
}

@media (max-width: 640px) {
  .auth-form-section {
    padding: 28px 16px;
  }

  .auth-form-wrapper,
  .auth-form-wrapper-wide {
    width: 100%;
  }

  .auth-form-heading h2 {
    font-size: 34px;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-form-group-full {
    grid-column: auto;
  }

  .auth-form-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .password-requirements {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .auth-form-section {
    padding-inline: 12px;
  }

  .auth-form-heading h2 {
    font-size: 30px;
  }

  .auth-input-wrapper input {
    height: 52px;
  }
}
/* =========================================================
   AUTH SUPPORT BOX
   ========================================================= */

.auth-support-box {
  margin-top: 28px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: var(--color-white);
}

.auth-support-box > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--color-primary-dark);
  background: rgba(255, 122, 0, 0.1);
}

.auth-support-box > div {
  display: flex;
  flex-direction: column;
}

.auth-support-box small {
  color: var(--color-text-soft);
  font-size: 8px;
}

.auth-support-box a {
  margin-top: 3px;
  color: var(--color-text);
  font-size: 9px;
  font-weight: 800;
}

.auth-support-box a:hover {
  color: var(--color-primary-dark);
}