.auth-redesign-page {
  --auth-primary: #07143a;
  --auth-accent: #ff920d;
  background: #f5f7fa;
  min-height: 68vh;
  padding: 44px 0 64px;
}

.auth-redesign-page *,
.auth-redesign-page *::before,
.auth-redesign-page *::after {
  box-sizing: border-box;
}

.auth-redesign-page .container {
  max-width: 980px;
}

.auth-card {
  width: min(100%, 450px);
  margin: 0 auto;
  padding: 44px 40px 40px;
  background: #ffffff;
  border: 1px solid rgba(7, 20, 58, 0.05);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(9, 20, 45, 0.08);
  color: var(--auth-primary);
}

.auth-card-wide {
  width: min(100%, 520px);
}

.auth-alert {
  width: min(100%, 560px);
  margin: 0 auto 18px;
  border-radius: 8px;
  text-align: right;
}

.auth-hero-image {
  display: flex;
  justify-content: center;
  min-height: 86px;
  margin-bottom: 20px;
}

.auth-hero-image img {
  display: block;
  width: min(100%, 360px);
  max-height: 128px;
  object-fit: contain;
}

.auth-products {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  min-height: 72px;
  margin-bottom: 22px;
}

.auth-product {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--auth-accent);
  box-shadow: 0 8px 18px rgba(255, 146, 13, 0.3);
}

.auth-product::before,
.auth-product::after {
  content: "";
  position: absolute;
  display: block;
}

.auth-product-1 {
  width: 42px;
  height: 42px;
}

.auth-product-1::before {
  width: 36px;
  height: 15px;
  left: -5px;
  top: 13px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1f2329, #6f747c);
  transform: rotate(-14deg);
}

.auth-product-1::after {
  width: 14px;
  height: 12px;
  right: 4px;
  top: 20px;
  border-radius: 3px;
  background: #242830;
  transform: rotate(16deg);
}

.auth-product-2 {
  width: 44px;
  height: 44px;
  background: #ffb34d;
}

.auth-product-2::before {
  width: 34px;
  height: 26px;
  left: 5px;
  top: 10px;
  border: 5px solid #222833;
  border-radius: 18px 18px 8px 8px;
  background: #f7d7a7;
}

.auth-product-3::before {
  width: 32px;
  height: 42px;
  left: 12px;
  top: 5px;
  border-radius: 7px;
  background: linear-gradient(180deg, #0e2b58, #1f5a9b);
  border: 3px solid #232a34;
}

.auth-product-3::after {
  width: 20px;
  height: 12px;
  left: 18px;
  top: 20px;
  border-radius: 2px;
  background: #f7b92a;
  box-shadow: 0 14px 0 #132444;
}

.auth-product-4 {
  width: 72px;
  height: 72px;
}

.auth-product-4::before {
  width: 76px;
  height: 40px;
  left: -2px;
  top: 14px;
  border: 6px solid #20242b;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #f2f4f7 0, #f2f4f7 8px, #d9dee8 8px, #d9dee8 11px);
  transform: rotate(13deg);
}

.auth-title {
  margin: 0 0 22px;
  color: var(--auth-primary);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 26px;
  border: 4px solid #e0e6ef;
  border-radius: 8px;
  background: #e0e6ef;
}

.auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 9px 12px;
  color: #6f7d91;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.auth-tab:hover,
.auth-tab:focus {
  color: var(--auth-primary);
  text-decoration: none;
}

.auth-tab.is-active {
  color: var(--auth-primary);
  background: #ffffff;
  border-radius: 5px;
}

.auth-form {
  margin: 0;
}

.auth-bot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.auth-note {
  margin: -8px 0 18px;
  color: #718096;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field .form-control {
  width: 100%;
  height: 50px;
  padding: 10px 16px;
  border: 1px solid #dde3eb;
  border-radius: 5px;
  background: #ffffff;
  color: var(--auth-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: right;
  box-shadow: none;
}

.auth-field select.form-control {
  padding-left: 34px;
}

.auth-field textarea.form-control {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

.auth-field .form-control::placeholder {
  color: #aeb8c6;
}

.auth-field .form-control:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(7, 20, 58, 0.08);
}

.auth-field.has-error .form-control {
  border-color: #d93d3d;
}

.auth-field .text-danger,
.auth-group .text-danger {
  margin-top: 6px;
  color: #d93d3d;
  font-size: 12px;
  text-align: right;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--auth-primary);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  box-shadow: none;
}

.auth-submit:hover,
.auth-submit:focus {
  background: #0d1f57;
  color: #ffffff;
}

.auth-secondary {
  border: 1px solid #dde3eb;
  border-radius: 5px;
  background: #ffffff;
  color: var(--auth-primary);
}

.auth-redesign-page .btn {
  text-shadow: none;
}

.auth-redesign-page .btn.auth-secondary {
  background: #ffffff;
  color: var(--auth-primary);
}

.auth-redesign-page .btn.auth-secondary:hover,
.auth-redesign-page .btn.auth-secondary:focus {
  background: var(--auth-primary);
  border-color: var(--auth-primary);
  color: #ffffff;
}

.auth-redesign-login .auth-check {
  display: none !important;
}

.auth-login-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-mode {
  min-height: 42px;
  border: 1px solid #dde3eb;
  border-radius: 6px;
  background: #ffffff;
  color: var(--auth-primary);
  font-weight: 800;
  text-align: center;
}

.auth-mode.is-active {
  background: var(--auth-primary);
  border-color: var(--auth-primary);
  color: #ffffff;
}

.auth-otp {
  display: grid;
  gap: 10px;
  margin: -2px 0 16px;
  padding: 12px;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #fbfcfe;
}

.auth-otp-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-otp-code .form-control {
  height: 44px;
  text-align: center;
}

.auth-redesign-page .auth-otp .btn {
  min-height: 44px;
  background: var(--auth-primary);
  border-color: var(--auth-primary);
  color: #ffffff;
  font-weight: 800;
}

.auth-redesign-page .auth-otp .btn:hover,
.auth-redesign-page .auth-otp .btn:focus {
  background: #0d1f57;
  border-color: #0d1f57;
  color: #ffffff;
}

.auth-redesign-page .auth-otp .btn[disabled],
.auth-redesign-page .auth-otp .btn.disabled {
  background: #e8edf5;
  border-color: #d5deeb;
  color: var(--auth-primary);
  opacity: 1;
}

.auth-otp-message {
  min-height: 18px;
  color: #718096;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.auth-otp-message.is-error {
  color: #d93d3d;
}

.auth-otp-message.is-success {
  color: #228b4e;
}

.auth-otp.is-verified {
  border-color: rgba(34, 139, 78, 0.35);
  background: #f4fbf7;
}

.auth-links {
  margin-top: 16px;
  text-align: center;
}

.auth-links a {
  color: #718096;
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover,
.auth-links a:focus {
  color: var(--auth-primary);
}

.auth-group {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #fbfcfe;
}

.auth-group-title,
.auth-file-label {
  display: block;
  margin-bottom: 10px;
  color: var(--auth-primary);
  font-weight: 800;
  text-align: right;
}

.auth-radio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.auth-radio,
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #46556b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
}

.auth-check {
  display: flex;
  margin: 12px 0 0;
}

.auth-check input,
.auth-radio input {
  margin: 0;
}

.auth-agree a {
  color: var(--auth-primary);
  font-weight: 800;
}

.auth-redesign-page .input-group .form-control {
  border-radius: 0 5px 5px 0;
}

.auth-redesign-page .input-group-btn .btn {
  height: 50px;
  border-radius: 5px 0 0 5px;
}

.auth-redesign-page[dir="ltr"] .auth-alert,
.auth-redesign-page[dir="ltr"] .auth-field .text-danger,
.auth-redesign-page[dir="ltr"] .auth-group .text-danger,
.auth-redesign-page[dir="ltr"] .auth-group-title,
.auth-redesign-page[dir="ltr"] .auth-file-label,
.auth-redesign-page[dir="ltr"] .auth-otp-message,
.auth-redesign-page[dir="ltr"] .auth-radio,
.auth-redesign-page[dir="ltr"] .auth-check {
  text-align: left;
}

.auth-redesign-page[dir="ltr"] .auth-field .form-control {
  text-align: left;
}

.auth-redesign-page[dir="ltr"] .auth-otp-code .form-control {
  text-align: center;
}

.auth-redesign-page[dir="ltr"] .auth-field select.form-control {
  padding-right: 34px;
  padding-left: 16px;
}

.auth-redesign-page[dir="ltr"] .input-group .form-control {
  border-radius: 5px 0 0 5px;
}

.auth-redesign-page[dir="ltr"] .input-group-btn .btn {
  border-radius: 0 5px 5px 0;
}

@media (max-width: 767px) {
  .auth-redesign-page {
    padding: 24px 0 44px;
  }

  .auth-card,
  .auth-card-wide {
    width: 100%;
    padding: 34px 18px 26px;
    border-radius: 12px;
  }

  .auth-hero-image {
    min-height: 68px;
    margin-bottom: 16px;
  }

  .auth-products {
    gap: 10px;
    min-height: 58px;
  }

  .auth-product {
    width: 45px;
    height: 45px;
  }

  .auth-product-1 {
    width: 34px;
    height: 34px;
  }

  .auth-product-2 {
    width: 36px;
    height: 36px;
  }

  .auth-product-4 {
    width: 56px;
    height: 56px;
  }

  .auth-title {
    font-size: 27px;
  }

  .auth-tabs {
    margin-bottom: 22px;
  }

  .auth-tab {
    min-height: 46px;
    font-size: 15px;
  }
}
