/* Customer login / register */
.sanaky-auth {
  padding: 56px 0 80px;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(50, 114, 186, 0.08), transparent 60%),
    radial-gradient(700px 380px at 100% 100%, rgba(50, 114, 186, 0.06), transparent 60%),
    #f5f8fb;
}

.sanaky-auth__card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  max-width: 1020px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e3e9ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(11, 36, 51, 0.1);
}

.sanaky-auth__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 40px;
  overflow: hidden;
  background: linear-gradient(155deg, #3272BA 0%, #24548A 55%, #12163F 100%);
  color: #fff;
}

.sanaky-auth__aside::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.sanaky-auth__logo {
  width: 170px;
  height: auto;
  margin-bottom: 36px;
}

.sanaky-auth__aside-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.sanaky-auth__aside-text {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.6;
}

.sanaky-auth__perks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sanaky-auth__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
}

.sanaky-auth__perks svg {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.sanaky-auth__main {
  padding: 44px 48px 40px;
}

.sanaky-auth__title {
  margin: 0 0 6px;
  color: #0b2433;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.sanaky-auth__sub {
  margin: 0 0 24px;
  color: #5f6d78;
  font-size: 15px;
  line-height: 1.55;
}

.sanaky-auth .alert {
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 14px;
}

/* Tabs */
.sanaky-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 12px;
  background: #eef2f6;
}

.sanaky-auth-tabs__tab {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5f6d78;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sanaky-auth-tabs__tab:hover {
  color: #3272BA;
}

.sanaky-auth-tabs__tab.is-active {
  background: #fff;
  color: #3272BA;
  box-shadow: 0 2px 8px rgba(11, 36, 51, 0.08);
}

.sanaky-auth-tabs__tab:focus {
  outline: none;
}

.sanaky-auth-tabs__tab:focus-visible {
  box-shadow: 0 0 0 3px rgba(50, 114, 186, 0.3);
}

/* Form */
.sanaky-auth-form {
  display: grid;
  gap: 16px;
  margin: 0;
}

.sanaky-auth-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sanaky-auth-form__error {
  display: none;
  padding: 11px 14px;
  border: 1px solid #f5c2c0;
  border-radius: 10px;
  background: #fdf0ef;
  color: #b3261e;
  font-size: 14px;
  line-height: 1.45;
}

.sanaky-auth-form__error.is-visible {
  display: block;
}

.sanaky-auth-field {
  display: block;
  margin: 0;
}

.sanaky-auth-field__label {
  display: block;
  margin-bottom: 7px;
  color: #1d2a33;
  font-size: 14px;
  font-weight: 600;
}

.sanaky-auth-field__label em {
  color: #d93025;
  font-style: normal;
}

.sanaky-auth-field__label small {
  color: #8a96a0;
  font-size: 12.5px;
  font-weight: 500;
}

.sanaky-auth-field input[type="text"],
.sanaky-auth-field input[type="email"],
.sanaky-auth-field input[type="tel"],
.sanaky-auth-field input[type="password"] {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d5dde5;
  border-radius: 10px;
  background: #fff;
  color: #0b2433;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sanaky-auth-field input::placeholder {
  color: #9aa6b0;
}

.sanaky-auth-field input:focus {
  border-color: #3272BA;
  outline: none;
  box-shadow: 0 0 0 3px rgba(50, 114, 186, 0.15);
}

.sanaky-auth-field input.is-invalid,
.sanaky-auth-field .is-invalid input {
  border-color: #d93025;
}

.sanaky-auth-field__error {
  display: block;
  margin-top: 6px;
  color: #b3261e;
  font-size: 13px;
  line-height: 1.4;
}

.sanaky-auth-field__phone,
.sanaky-auth-field__password {
  position: relative;
  display: flex;
  align-items: stretch;
}

.sanaky-auth-field__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #d5dde5;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #f3f6f9;
  color: #3c4a55;
  font-size: 15px;
  font-weight: 600;
}

.sanaky-auth-field .sanaky-auth-field__phone input {
  border-radius: 0 10px 10px 0;
}

.sanaky-auth-field .sanaky-auth-field__password input {
  padding-right: 48px;
}

.sanaky-auth-field__reveal {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7a8893;
  cursor: pointer;
  transform: translateY(-50%);
}

.sanaky-auth-field__reveal:hover,
.sanaky-auth-field__reveal[aria-pressed="true"] {
  background: #EEF0FA;
  color: #3272BA;
}

.sanaky-auth-field__reveal:focus {
  outline: none;
}

.sanaky-auth-field__reveal:focus-visible {
  box-shadow: 0 0 0 3px rgba(50, 114, 186, 0.3);
}

.sanaky-auth-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sanaky-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #3c4a55;
  font-size: 14px;
  cursor: pointer;
}

.sanaky-auth-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #3272BA;
}

.sanaky-auth-link {
  color: #3272BA;
  font-weight: 600;
  text-decoration: none;
}

.sanaky-auth-link:hover,
.sanaky-auth-link:focus-visible {
  color: #24548A;
  text-decoration: underline;
}

.sanaky-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sanaky-auth-btn--primary {
  background: #3272BA;
  color: #fff;
  box-shadow: 0 8px 20px rgba(50, 114, 186, 0.25);
}

.sanaky-auth-btn--primary:hover {
  background: #24548A;
  box-shadow: 0 10px 24px rgba(50, 114, 186, 0.32);
}

.sanaky-auth-btn--primary:active {
  transform: translateY(1px);
}

.sanaky-auth-btn:focus {
  outline: none;
}

.sanaky-auth-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(50, 114, 186, 0.35);
}

.sanaky-auth-btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.sanaky-auth-form__hint {
  margin: -4px 0 0;
  color: #6e7b86;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.sanaky-auth__switch {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #eef1f4;
  color: #5f6d78;
  font-size: 14.5px;
  text-align: center;
}

@media (max-width: 991px) {
  .sanaky-auth__card {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .sanaky-auth__aside {
    display: none;
  }
}

@media (max-width: 575px) {
  .sanaky-auth {
    padding: 24px 0 48px;
  }

  .sanaky-auth__card {
    border-radius: 18px;
  }

  .sanaky-auth__main {
    padding: 28px 20px 26px;
  }

  .sanaky-auth__title {
    font-size: 24px;
  }

  .sanaky-auth-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sanaky-auth-btn,
  .sanaky-auth-tabs__tab {
    transition: none;
  }
}
