/* =====================================================================
   Fullimit — Login / Register page
   Mobile-first · No borders · Clean surfaces · Dark-aware
   ===================================================================== */

/* ---------- Wrapper ---------- */
.fl-auth {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px var(--fl-gut) 40px;
}

/* ---------- Card ---------- */
.fl-auth__card {
  width: 100%;
  max-width: 440px;
  background: var(--fl-surface);
  border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow-md);
  overflow: hidden;
  animation: flAuthIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes flAuthIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Header ---------- */
.fl-auth__head {
  text-align: center;
  padding: 32px 24px 20px;
  background: var(--fl-grad-soft);
}

.fl-auth__logo {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--fl-grad);
  color: var(--fl-on-primary);
  box-shadow: 0 12px 28px -10px var(--fl-primary);
  margin-bottom: 16px;
  animation: flLogoPulse 2s ease-in-out 1;
}

.fl-auth__logo .i { width: 30px; height: 30px; }

@keyframes flLogoPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.fl-auth__title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}

.fl-auth__sub {
  font-size: 13.5px;
  color: var(--fl-muted);
  line-height: 1.5;
}

/* ---------- Tabs ---------- */
.fl-auth__tabs {
  display: flex;
  padding: 6px;
  gap: 4px;
  background: var(--fl-surface-2);
}

.fl-auth__tab {
  flex: 1;
  text-align: center;
  padding: 11px 8px;
  border-radius: var(--fl-radius-xs);
  font-weight: 800;
  font-size: 14px;
  color: var(--fl-muted);
  position: relative;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.fl-auth__tab:hover { color: var(--fl-text); }

.fl-auth__tab.is-active {
  background: var(--fl-surface);
  color: var(--fl-primary);
  box-shadow: var(--fl-shadow-sm);
}

.fl-auth__tab:focus-visible {
  outline: 2px solid var(--fl-primary);
  outline-offset: 2px;
}

/* ---------- Body ---------- */
.fl-auth__body {
  padding: 24px 20px 28px;
}

/* ---------- Notices (no borders) ---------- */
.fl-auth__body .woocommerce-error,
.fl-auth__body .woocommerce-info,
.fl-auth__body .woocommerce-message {
  border: none;
  border-radius: var(--fl-radius-xs);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 14px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.fl-auth__body .woocommerce-error {
  background: color-mix(in srgb, var(--fl-danger) 10%, transparent);
  color: var(--fl-danger);
}

.fl-auth__body .woocommerce-info {
  background: color-mix(in srgb, var(--fl-primary) 10%, transparent);
  color: var(--fl-primary);
}

.fl-auth__body .woocommerce-message {
  background: color-mix(in srgb, var(--fl-success) 10%, transparent);
  color: var(--fl-success);
}

/* ---------- Panels ---------- */
.fl-auth__panel {
  display: none;
  animation: flPanelIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fl-auth__panel.is-active { display: block; }

@keyframes flPanelIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes flPanelInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes flPanelInRight {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Reset WooCommerce column wrappers */
.fl-auth__panel .u-columns { display: block !important; gap: 0 !important; }
.fl-auth__panel .u-columns h2 { display: none !important; }
.fl-auth__panel .col-1,
.fl-auth__panel .col-2 { background: none !important; border: none !important; border-radius: 0 !important; padding: 0 !important; }

/* ---------- Forms ---------- */
.fl-auth__body .form-row {
  margin-bottom: 18px;
}

.fl-auth__body label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--fl-text);
}

.fl-auth__body label .required {
  color: var(--fl-danger);
}

/* Inputs — NO border, clean surface */
.fl-auth__body input[type="text"],
.fl-auth__body input[type="email"],
.fl-auth__body input[type="password"],
.fl-auth__body input[type="tel"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  background: var(--fl-surface-2);
  box-shadow: inset 0 0 0 1.5px var(--fl-border-2);
  border: none;
  border-radius: var(--fl-radius-xs);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fl-text);
  transition: box-shadow 0.25s ease, background 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.fl-auth__body input::placeholder {
  color: var(--fl-muted-2);
  font-weight: 500;
}

.fl-auth__body input:hover {
  background: var(--fl-surface);
  box-shadow: inset 0 0 0 1.5px var(--fl-border);
}

.fl-auth__body input:focus {
  outline: none;
  background: var(--fl-surface);
  box-shadow: inset 0 0 0 2px var(--fl-primary), 0 0 0 3px var(--fl-primary-ring);
}

/* ---------- Phone row (select + input) ---------- */
.fl-auth__phone-row {
  display: flex;
  gap: 8px;
}

.fl-auth__phone-select {
  width: 130px;
  min-width: 130px;
  height: 50px;
  padding: 0 10px;
  background: var(--fl-surface-2);
  box-shadow: inset 0 0 0 1.5px var(--fl-border-2);
  border: none;
  border-radius: var(--fl-radius-xs);
  font-size: 14px;
  font-weight: 600;
  color: var(--fl-text);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6B85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
  padding-left: 28px;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.fl-auth__phone-select:hover {
  background-color: var(--fl-surface);
  box-shadow: inset 0 0 0 1.5px var(--fl-border);
}

.fl-auth__phone-select:focus {
  outline: none;
  background-color: var(--fl-surface);
  box-shadow: inset 0 0 0 2px var(--fl-primary), 0 0 0 3px var(--fl-primary-ring);
}

.fl-auth__phone-input {
  flex: 1;
  min-width: 0;
}

/* ---------- Inline validation ---------- */
.fl-auth__field-error {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--fl-danger);
  margin-top: 6px;
  padding: 0 2px;
}

.fl-auth__field-error.is-visible {
  display: block;
  animation: flFadeIn 0.2s ease both;
}

.fl-auth__field-success {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--fl-success);
  margin-top: 6px;
  padding: 0 2px;
}

.fl-auth__field-success.is-visible {
  display: block;
  animation: flFadeIn 0.2s ease both;
}

@keyframes flFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Remember me row ---------- */
.fl-auth__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.fl-auth__actions .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.fl-auth__actions .woocommerce-form-login__rememberme span {
  font-size: 13.5px;
  color: var(--fl-muted);
  font-weight: 600;
}

.fl-auth__actions .woocommerce-form__input-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--fl-primary);
  cursor: pointer;
}

/* ---------- Buttons (no borders) ---------- */
.fl-auth__body .button,
.fl-auth__body .woocommerce-form-login__submit,
.fl-auth__body .woocommerce-Button {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--fl-radius-sm);
  background: var(--fl-grad-btn);
  color: var(--fl-on-primary);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  box-shadow: 0 8px 20px -8px var(--fl-primary);
}

.fl-auth__body .button:hover,
.fl-auth__body .woocommerce-form-login__submit:hover,
.fl-auth__body .woocommerce-Button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px var(--fl-primary);
  opacity: 0.92;
}

.fl-auth__body .button:active,
.fl-auth__body .woocommerce-form-login__submit:active,
.fl-auth__body .woocommerce-Button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px -4px var(--fl-primary);
}

.fl-auth__body .button:focus-visible,
.fl-auth__body .woocommerce-form-login__submit:focus-visible,
.fl-auth__body .woocommerce-Button:focus-visible {
  outline: 2px solid var(--fl-primary);
  outline-offset: 2px;
}

/* ---------- Divider "أو" ---------- */
.fl-auth__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--fl-muted-2);
  font-size: 13px;
  font-weight: 600;
}

.fl-auth__divider::before,
.fl-auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--fl-border-2);
}

/* ---------- Google button ---------- */
.fl-auth__google-btn {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--fl-surface);
  box-shadow: inset 0 0 0 1.5px var(--fl-border-2);
  border: none;
  border-radius: var(--fl-radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fl-text);
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.fl-auth__google-btn:hover {
  background: var(--fl-surface-2);
  box-shadow: inset 0 0 0 1.5px var(--fl-border);
}

.fl-auth__google-btn:focus-visible {
  outline: 2px solid var(--fl-primary);
  outline-offset: 2px;
}

.fl-auth__google-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Links ---------- */
.fl-auth__pw-reset {
  display: block;
  text-align: center;
  margin-top: 14px;
}

.fl-auth__pw-reset a {
  font-size: 13px;
  font-weight: 700;
  color: var(--fl-primary);
  transition: color 0.2s ease;
}

.fl-auth__pw-reset a:hover { color: var(--fl-accent); }

/* ---------- Confirmation message ---------- */
.fl-auth__confirmation {
  text-align: center;
  padding: 4px 0 8px;
}

.fl-auth__confirmation p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fl-muted);
}

/* ---------- Success logo variant ---------- */
.fl-auth__logo--success {
  background: linear-gradient(135deg, var(--fl-success), color-mix(in srgb, var(--fl-success) 70%, #000));
  box-shadow: 0 12px 28px -10px var(--fl-success);
}

/* ---------- Honeypot ---------- */
.fl-auth__hpots { display: none !important; }

/* ---------- Responsive: sm (≥ 480px) ---------- */
@media (min-width: 480px) {
  .fl-auth { padding: 32px var(--fl-gut) 48px; }
  .fl-auth__head { padding: 36px 28px 22px; }
  .fl-auth__body { padding: 28px 28px 32px; }
  .fl-auth__title { font-size: 24px; }
}

/* ---------- Responsive: md (≥ 768px) ---------- */
@media (min-width: 768px) {
  .fl-auth { padding: 48px var(--fl-gut) 60px; }
  .fl-auth__head { padding: 40px 32px 24px; }
  .fl-auth__body { padding: 30px 32px 34px; }
  .fl-auth__title { font-size: 26px; }
  .fl-auth__sub { font-size: 14px; }
}

/* ---------- Responsive: lg (≥ 1024px) ---------- */
@media (min-width: 1024px) {
  .fl-auth { padding: 60px 24px 72px; }
  .fl-auth__card { box-shadow: var(--fl-shadow-lg); }
  .fl-auth__logo { width: 64px; height: 64px; border-radius: 20px; }
  .fl-auth__logo .i { width: 32px; height: 32px; }
}

/* ---------- Dark mode ---------- */
html[data-theme="dark"] .fl-auth__head { background: var(--fl-surface-2); }

html[data-theme="dark"] .fl-auth__body input[type="text"],
html[data-theme="dark"] .fl-auth__body input[type="email"],
html[data-theme="dark"] .fl-auth__body input[type="password"],
html[data-theme="dark"] .fl-auth__body input[type="tel"] {
  background: var(--fl-surface-3);
  box-shadow: inset 0 0 0 1.5px var(--fl-border);
}

html[data-theme="dark"] .fl-auth__body input:focus {
  background: var(--fl-surface-2);
}

html[data-theme="dark"] .fl-auth__phone-select {
  background-color: var(--fl-surface-3);
  box-shadow: inset 0 0 0 1.5px var(--fl-border);
  color: var(--fl-text);
}

html[data-theme="dark"] .fl-auth__phone-select:focus {
  background-color: var(--fl-surface-2);
}

html[data-theme="dark"] .fl-auth__google-btn {
  background: var(--fl-surface-2);
  box-shadow: inset 0 0 0 1.5px var(--fl-border);
  color: var(--fl-text);
}
