/* =============================================
   Admiria Auth Page – Loyalty Auth Stylesheet
   Class naming convention: loyalty-auth-*
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --loyalty-color-teal: #3dbdb8;
  --loyalty-color-teal-dark: #2ea8a3;
  --loyalty-color-pink: #e96fa0;
  --loyalty-color-pink-dark: #d45a8a;
  --loyalty-color-bg-start: #c8eff0;
  --loyalty-color-bg-end: #e8fafa;
  --loyalty-color-text-body: #4a5568;
  --loyalty-color-text-light: #a0aec0;
  --loyalty-color-white: #ffffff;
  --loyalty-color-input-bg: rgba(255, 255, 255, 0.92);
  --loyalty-color-error: #e53e3e;
  --loyalty-color-success: #38a169;

  --loyalty-font-logo: 'Dancing Script', cursive;
  --loyalty-font-body: 'Diodrum',sans-serif;

  --loyalty-radius-input: 50px;
  --loyalty-radius-btn: 50px;

  --loyalty-shadow-input: 0 2px 12px rgba(0, 0, 0, 0.06);
  --loyalty-shadow-btn: 0 8px 24px rgba(233, 111, 160, 0.35);

  --loyalty-transition-base: 0.25s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Body ---------- */
.loyalty-auth-body {
  font-family: var(--loyalty-font-body);
  background: linear-gradient(180deg, var(--loyalty-color-bg-start) 0%, var(--loyalty-color-bg-end) 55%, var(--loyalty-color-white) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Page wrapper ---------- */
.loyalty-auth-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px 40px;
  position: relative;
}

/* ---------- Logo ---------- */
.loyalty-auth-logo {
  position: relative;
  z-index: 20;
  margin-bottom: -32px;
  width:200px
}

.loyalty-auth-logo a {

}

.loyalty-auth-logo-wordmark {
  font-family: var(--loyalty-font-logo);
  font-size: 1.9rem;
  color: #444;
  line-height: 1;
}

.loyalty-auth-logo-swoosh {
  width: 80px;
  height: auto;
  display: block;
}

/* ---------- Main wrap (the whole card area) ---------- */
.loyalty-auth-wrap {
  width: 90vw;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: 60px 56px 56px 0px;
  background: url(http://admiria.com/wp-content/uploads/2026/05/group-178-2-scaled-1.png);
  border-radius: 0 200px 200px;
  background-size: cover;
  gap: 12px;
  flex-direction: column;
  min-height: 90vh;
}
html.rtl.lang-ar .loyalty-auth-wrap{
      width: 90vw;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: 60px 56px 56px 0px;
  background-size: cover !important;
  gap: 12px;
  flex-direction: column;
  min-height: 90vh;
      background: url(http://admiria.com/wp-content/uploads/2026/05/group-178-2-scaled-1-copy.png);

}
/* ---------- Blob ---------- */
.loyalty-auth-blob {
  position: absolute;
  width: 68%;
  height: 110%;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50% 30% 50% 30% / 30% 50% 30% 50%;
  right: 28%;
  top: -5%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Decorative SVG elements ---------- */
.loyalty-auth-branch-tr {
  position: absolute;
  top: 28px;
  right: 48px;
  width: 70px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.loyalty-auth-flower-bottom {
  position: absolute;
  bottom: 16px;
  right: 260px;
  width: 100px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Model image ---------- */
.loyalty-auth-model {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(240px, 42%, 500px);
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.loyalty-auth-model-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0 36px 36px 0;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
}

/* ---------- Form panel ---------- */
.loyalty-auth-panel {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 600px;
}

/* ---------- Heading ---------- */
.loyalty-auth-heading {
  display: flex;
  width: 92%;
  flex-direction: column;
  gap: 6px;
}

.loyalty-auth-title {
  font-family: var(--loyalty-font-body);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.25;
  margin: 0;
}

.loyalty-auth-title--teal {
  color: var(--loyalty-color-teal);
}

.loyalty-auth-subtitle {
  font-family: var(--loyalty-font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #3a4556;
  font-weight: 400;
  line-height: 1.4;
}

/* ---------- Form box ---------- */
.loyalty-auth-form-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 0px 24px 60px;
  max-width: 600px;
}

/* ---------- Form ---------- */
.loyalty-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Field ---------- */
.loyalty-auth-field {
  position: relative;
}

.loyalty-auth-field--phone {
  display: flex;
  gap: 10px;
  align-items: center;
}

.loyalty-auth-field--password {
  position: relative;
}

/* ---------- Inputs ---------- */
.loyalty-auth-input {
  width: 100%;
  height: 52px !important;
  padding: 0 20px !important;
  font-family: var(--loyalty-font-body) !important;
  font-size: 0.97rem !important;
  color: #2d3748 !important;
  background: var(--loyalty-color-input-bg) !important;
  border: 1.5px solid rgba(91, 188, 184, 0.15) !important;
  border-radius: var(--loyalty-radius-input) !important;
  outline: none !important;
  transition:
    border-color var(--loyalty-transition-base),
    box-shadow var(--loyalty-transition-base);
  -webkit-appearance: none;
  appearance: none;
}

.loyalty-auth-input::placeholder {
  color: var(--loyalty-color-text-light);
}

.loyalty-auth-input:focus {
  border-color: var(--loyalty-color-teal);
  box-shadow: 0 0 0 3px rgba(61, 189, 184, 0.15);
}

.loyalty-auth-input--phone {
  flex: 1 1 0;
  border-radius: var(--loyalty-radius-input);
}

/* Password padding-right for eye icon */
.loyalty-auth-field--password .loyalty-auth-input {
  padding-right: 52px;
}

/* ---------- Dial code select ---------- */
.loyalty-auth-dial-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.loyalty-auth-dial {
  height: 52px;
  padding: 0 32px 0 16px;
  font-family: var(--loyalty-font-body);
  font-size: 0.92rem;
  color: #2d3748;
  background: var(--loyalty-color-input-bg);
  border: 1.5px solid rgba(91, 188, 184, 0.15);
  border-radius: var(--loyalty-radius-input);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--loyalty-transition-base);
}

.loyalty-auth-dial:focus {
  border-color: var(--loyalty-color-teal);
}

.loyalty-auth-dial-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  pointer-events: none;
}

/* ---------- Eye toggle button ---------- */
.loyalty-auth-eye {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--loyalty-color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--loyalty-transition-base);
  line-height: 0;
}

.loyalty-auth-eye:hover {
  color: var(--loyalty-color-teal);
}

.loyalty-auth-eye svg {
  width: 20px;
  height: 20px;
}

/* ---------- Form footer ---------- */
.loyalty-auth-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Switch / link text ---------- */
.loyalty-auth-switch {
  font-family: var(--loyalty-font-body);
  font-size: 0.88rem;
  color: var(--loyalty-color-pink);
  margin: 0;
}

.loyalty-auth-switch--sm {
  font-size: 0.82rem;
}

.loyalty-auth-link {
  font-family: var(--loyalty-font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--loyalty-color-pink);
  text-decoration: none;
  transition: color var(--loyalty-transition-base);
}

.loyalty-auth-link:hover {
  color: var(--loyalty-color-pink-dark);
}

/* ---------- CTA button ---------- */
.loyalty-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 32px;
  background: var(--loyalty-color-pink);
  color: var(--loyalty-color-white);
  font-family: var(--loyalty-font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--loyalty-radius-btn);
  box-shadow: var(--loyalty-shadow-btn);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition:
    background var(--loyalty-transition-base),
    box-shadow var(--loyalty-transition-base),
    transform var(--loyalty-transition-base);
  flex-shrink: 0;
}

.loyalty-auth-btn:hover,
.loyalty-auth-btn:focus-visible {
  background: var(--loyalty-color-pink-dark);
  box-shadow: 0 12px 32px rgba(233, 111, 160, 0.45);
  transform: translateY(-1px);
}

.loyalty-auth-btn:active {
  transform: translateY(0);
}

.loyalty-auth-btn-arrow {
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------- Error / success messages ---------- */
.loyalty-auth-errors {
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.2);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loyalty-auth-errors p {
  font-size: 0.88rem;
  color: var(--loyalty-color-error);
  line-height: 1.5;
}

.loyalty-auth-success {
  background: rgba(56, 161, 105, 0.08);
  border: 1px solid rgba(56, 161, 105, 0.25);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.92rem;
  color: var(--loyalty-color-success);
  line-height: 1.6;
}

.loyalty-auth-success a {
  color: var(--loyalty-color-success);
  font-weight: 700;
}

/* ---------- Email duplicate check ---------- */
.loyalty-auth-email-check {
  display: block;
  font-size: 0.78rem;
  padding: 3px 12px 0;
  min-height: 18px;
  transition: color var(--loyalty-transition-base);
}

.loyalty-auth-email-check--error {
  color: var(--loyalty-color-error);
}

.loyalty-auth-email-check--ok {
  color: var(--loyalty-color-success);
}

/* ---------- Resend link ---------- */
.loyalty-auth-resend {
  font-size: 0.84rem;
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 860px) {
  .loyalty-auth-wrap {
    padding: 60px 36px 48px;
    gap: 24px;
  }

  .loyalty-auth-model {
    width: 38%;
    opacity: 0.6;
  }

  .loyalty-auth-panel {
    max-width: 100%;
  }

  .loyalty-auth-wrap {
    background: url(http://localhost/test/wp-content/uploads/2026/05/Group-179-1.png);
    background-size: cover;
    height: 85vh;
  }

  .loyalty-auth-heading {
    margin-top: 80px;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 580px) {
  .loyalty-auth-wrap {
    padding: 0px;
    border-radius: 24px;
    min-height: auto;
  }

  .loyalty-auth-model {
    display: none;
  }

  .loyalty-auth-blob {
    display: none;
  }

  .loyalty-auth-form {
    gap: 4px;
  }

  .loyalty-auth-form-box {
    padding: 24px 40px 22px 12px;
    border-radius: 18px;
  }

  .loyalty-auth-title {
    font-size: 1.2rem;
  }

  .loyalty-auth-subtitle {
    font-size: 0.97rem;
  }

  .loyalty-auth-input {
    height: 48px;
    font-size: 0.92rem;
  }

  .loyalty-auth-dial {
    height: 48px;
    font-size: 0.88rem;
    padding: 0 28px 0 14px;
  }

  .loyalty-auth-form-footer {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
  }

  .loyalty-auth-btn {
    width: 26%;
    justify-content: center;
    padding: 8px;
  }

  .loyalty-auth-branch-tr,
  .loyalty-auth-flower-bottom {
    display: none;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

  .loyalty-auth-btn,
  .loyalty-auth-input,
  .loyalty-auth-dial,
  .loyalty-auth-eye,
  .loyalty-auth-link {
    transition: none;
  }
}

/* ---------- Invalid Input State (Red Border) ---------- */
.loyalty-auth-input.has-error,
.loyalty-auth-dial.has-error {
  border-color: var(--loyalty-color-error) !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}

/* ---------- Disabled Button State ---------- */
.loyalty-auth-btn:disabled {
  background: #ea6ea0 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.7;
}

/* ---------- Toast Notification ---------- */
.loyalty-toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--loyalty-color-error);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--loyalty-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 8px 24px rgba(229, 62, 62, 0.3);
  text-align: center;
  white-space: nowrap;
}

.loyalty-toast.show {
  bottom: 40px;
  opacity: 1;
  visibility: visible;
}