/*-----------------------------------------------сторынка стандартна--------------------*/

.woocommerce-form-login {
  display: flex;
  flex-direction: column;
  row-gap: 14px;
}

/*-----------------------------------------------Модалка--------------------*/
.ak-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}

.ak-auth-modal {
  position: fixed;
  inset: 0;
  margin: auto;

  width: 1220px;
  max-width: calc(100% - 32px);
  height: 534px;

  background: #fff;
  border-radius: 20px;

  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 1000;
}

.ak-auth-modal.is-open,
.ak-auth-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ak-auth-modal.is-open {
  transform: scale(1);
}

.ak-auth-close {
  position: absolute;
  top: 22px;
  right: 22px;

  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.ak-auth-close svg {
  display: block;
}

.ak-auth-layout {
  height: 100%;
  display: flex;
}

.ak-auth-side {
  width: 405px;
  height: 100%;
  background: #f0f0f0;

  border-radius: 20px;
  padding: 52px 26px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 10px;
}

.ak-auth-content {
  flex: 1;
  height: 100%;
  padding: 48px 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  row-gap: 10px;
}
.ak-auth-form {
  display: none;
}

.ak-auth-form.is-active {
  display: flex;
  flex-direction: column;
}
/* side panels layout */
.ak-auth-side.ak-auth-form.is-active {
  display: flex;
}

/* right panes */
.ak-auth-content .ak-auth-form.is-active {
  display: flex;
  width: 100%;
  max-width: 411px;
  flex-direction: column;
  row-gap: 10px;
  height: 100%;
  align-items: center;
}

/* Typography */
.ak-auth-side h2,
.ak-auth-content h2 {
  margin: 0;
  color: #009846;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 600;
  font-family: var(--ak-font-ui);
  text-align: center;
}

.ak-auth-side p,
.ak-auth-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #595959;
  font-family: var(--ak-font-ui);
  max-width: 300px;
  text-align: center;
}

/* Buttons (як у Figma) */
.ak-btn {
  border: 0;
  cursor: pointer;
  font-family:
    "Inter Tight",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}

.ak-btn--secondary {
  margin-top: auto;
  padding: 0 52px;
  height: 65px;
  border-radius: 15px;
  background: #009846 !important;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.ak-btn--secondary:hover {
  color: white;
}

/* Woo form styling inside modal */
.ak-auth-content form {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.ak-auth-content input[type="text"],
.ak-auth-content input[type="email"],
.ak-auth-content input[type="tel"],
.ak-auth-content input[type="password"] {
  width: 100%;
  height: 50px;
  border-radius: 6px;
  background: #f7f7f7;
  border: 1px solid transparent;
  padding: 0 16px;
  outline: none;
  font-family: var(--ak-font-ui);
  font-size: 16px;
  box-shadow: none !important;
}

.ak-auth-content input:focus {
  border-color: #009846;
}

.ak-auth-content .woocommerce-form-login__submit,
.ak-auth-content .woocommerce-form-register__submit,
.ak-auth-content button[type="submit"] {
  width: 100%;
  height: 65px;
  border-radius: 15px;
  background: #009846;
  color: #fff;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
  justify-content: center;
}

/* Links */
.ak-auth-content a {
  color: #009846;
  text-decoration: none;
}

.ak-auth-content a:hover {
  text-decoration: underline;
}

/* ===== ACCOUNT MODE ===== */
.ak-auth-account {
  display: none;
}

.ak-auth-account.is-active {
  display: block;
}

.ak-auth-modal[data-mode="account"] .ak-auth-layout {
  /* залишаємо праву частину по центру */
}

.ak-auth-modal[data-mode="account"] .ak-auth-side {
  display: none;
}

.ak-auth-modal[data-mode="account"] .ak-auth-content {
  width: 100%;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ak-auth-modal[data-mode="account"] .ak-auth-content > * {
  width: 100%;
  max-width: 520px;
}

.ak-auth-account__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.ak-auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 1470px) {
  .ak-auth-modal {
    width: 1060px;
  }

  .ak-auth-content input[type="text"],
  .ak-auth-content input[type="email"],
  .ak-auth-content input[type="tel"],
  .ak-auth-content input[type="password"] {
    font-size: 14px;
  }
  .ak-btn--secondary {
    height: 55px;
    font-size: 14px;
  }
  .ak-auth-content .woocommerce-form-login__submit,
  .ak-auth-content .woocommerce-form-register__submit,
  .ak-auth-content button[type="submit"] {
    height: 55px;
    font-size: 14px;
  }
}
@media (max-width: 1024px) {
  .ak-auth-modal {
    width: 940px;
  }
  .ak-auth-side h2,
  .ak-auth-content h2 {
    font-size: 28px;
  }
}

/* Responsive */
@media (max-width: 800px) {
  .ak-auth-modal {
    width: 720px;
    height: auto;
  }
  .ak-auth-layout {
    flex-direction: column;
  }
  .ak-auth-side {
    width: 100%;
    border-radius: 20px;
    min-height: 260px;
  }
  .ak-auth-content {
    padding: 32px 20px 28px;
  }
}

@media (max-width: 768px) {
  .ak-auth-side h2,
  .ak-auth-content h2 {
    font-size: 24px;
  }
  .ak-auth-grid-2 {
    grid-template-columns: 1fr;
  }
  .ak-auth-side.ak-auth-form.is-active {
    order: 2;
  }
}

@media (max-width: 425px) {
  .ak-auth-side h2,
  .ak-auth-content h2 {
    font-size: 22px;
  }
  .ak-auth-side p,
  .ak-auth-content p {
    font-size: 13px;
  }
}
