/**
 * Login, signup, and lost-password — soft branded cards
 *
 * @package BaitAlKaram
 */

html:has(.auth-page),
body.page-login,
body.page-signup,
body.page-login .storefront,
body.page-signup .storefront {
  overflow-x: hidden;
}

.auth-page {
  position: relative;
  max-width: 100%;
  min-width: 0;
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 80px);
  isolation: isolate;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.auth-page::before {
  width: min(260px, 55vw);
  height: min(260px, 55vw);
  inset-block-start: -36px;
  inset-inline-end: -40px;
  background: rgba(186, 32, 41, 0.07);
}

.auth-page::after {
  width: min(200px, 48vw);
  height: min(200px, 48vw);
  inset-block-end: 40px;
  inset-inline-start: -48px;
  background: rgba(186, 32, 41, 0.045);
}

.auth-page *,
body.woocommerce-lost-password .woocommerce-ResetPassword * {
  box-shadow: none !important;
}

.auth-card,
body.woocommerce-lost-password .woocommerce-ResetPassword {
  max-width: 460px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.auth-brand img {
  width: 168px;
  height: auto;
}

.auth-head {
  text-align: center;
  margin-bottom: 22px;
}

.auth-head h1 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}

.auth-head p {
  margin: 8px 0 0;
  color: var(--ink-light);
  font-size: 15px;
  line-height: 1.8;
}

.auth-google {
  display: flex;
  justify-content: center;
  margin: 0 0 8px;
}

.auth-google iframe,
.auth-google div {
  max-width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 18px;
  color: var(--ink-light);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label,
body.woocommerce-lost-password .woocommerce-ResetPassword label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-light);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"],
body.woocommerce-lost-password .woocommerce-ResetPassword input.input-text {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.auth-form input:focus,
body.woocommerce-lost-password .woocommerce-ResetPassword input.input-text:focus {
  outline: 2px solid rgba(186, 32, 41, 0.28);
  border-color: rgba(186, 32, 41, 0.4);
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
}

.auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

.auth-submit,
body.woocommerce-lost-password .woocommerce-ResetPassword .button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit:hover,
body.woocommerce-lost-password .woocommerce-ResetPassword .button:hover {
  background: var(--red-deep);
}

.auth-hint,
.auth-help,
.auth-links {
  margin: 16px 0 0;
  text-align: center;
  color: var(--ink-light);
  font-size: 13.5px;
  line-height: 1.8;
}

.auth-links {
  display: grid;
  gap: 6px;
}

.auth-links a,
.auth-help a {
  color: var(--red);
  font-weight: 600;
}

.auth-page .woocommerce-notices-wrapper,
.auth-page .woocommerce-error,
.auth-page .woocommerce-message,
.auth-page .woocommerce-info {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf9;
  list-style: none;
}

.auth-page .woocommerce-error {
  color: var(--red);
}

.auth-page .woocommerce-message {
  background: #eef8f1;
}

body.woocommerce-lost-password .store-heading {
  text-align: center;
}

@media (max-width: 600px) {
  .auth-card {
    padding: 20px 16px;
  }
}
