/* ================================================================
   WCFlow — My Account (Giriş & Kayıt) Sayfası
================================================================ */

/* ── Variables (overridden by inline CSS) ── */
#wcf-ma-page {
  --ma-accent:       #f27a1a;
  --ma-btn-bg:       #1f1235;
  --ma-btn-color:    #ffffff;
  --ma-heading:      #1f1235;
  --ma-page-bg:      #f5f5f7;
  --ma-card-bg:      #ffffff;
  --ma-card-border:  #e5e7eb;
  --ma-input-border: #e5e7eb;
  --ma-max-width:    480px;
  --ma-pad-v:        40px;
  --ma-card-pad:     40px;
  --ma-radius:       16px;
  --ma-input-h:      46px;
  --ma-input-radius: 10px;
  --ma-input-size:   14px;
  --ma-btn-h:        48px;
  --ma-btn-radius:   12px;
  --ma-btn-size:     15px;
  --ma-title-size:   26px;
  --ma-title-weight: 700;
  --ma-label-size:   12px;
  --ma-shadow:       0 4px 24px rgba(0,0,0,.08);
}

/* ── Page Wrapper ── */
#wcf-ma-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ma-pad-v) 24px calc(var(--ma-pad-v) * 2);
  background: var(--ma-page-bg);
}

/* ── Container ── */
.wcf-ma-container {
  width: 100%;
  max-width: var(--ma-max-width);
}

/* ── LAYOUT: SPLIT ── */
#wcf-ma-page.wcf-ma-layout-split .wcf-ma-container {
  max-width: min(900px, 90vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--ma-radius);
  overflow: hidden;
  box-shadow: var(--ma-shadow);
}
#wcf-ma-page.wcf-ma-layout-split .wcf-ma-card {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* ── LAYOUT: WIDE ── */
#wcf-ma-page.wcf-ma-layout-wide .wcf-ma-container {
  max-width: min(680px, 90vw);
}

/* ── Split Left Panel ── */
.wcf-ma-split-left {
  background: var(--ma-accent);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.wcf-ma-split-left::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.wcf-ma-split-left::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.wcf-ma-split-logo {
  border: 2px solid #fff;
  padding: 4px 13px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: inline-block;
  z-index: 1;
}
.wcf-ma-split-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  z-index: 1;
}
.wcf-ma-split-sub {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  z-index: 1;
}
.wcf-ma-split-badges { display: flex; flex-direction: column; gap: 10px; z-index: 1; }
.wcf-ma-split-badge {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.9); font-size: 13px;
}
.wcf-ma-split-badge-icon {
  width: 26px; height: 26px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wcf-ma-split-badge-icon svg { color: #fff; }

/* ── Card ── */
.wcf-ma-card {
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-card-border);
  border-radius: var(--ma-radius);
  padding: var(--ma-card-pad);
  box-shadow: var(--ma-shadow);
}

/* ── Tabs ── */
.wcf-ma-tabs {
  display: flex;
  border-bottom: 2px solid var(--ma-card-border);
  margin-bottom: 28px;
  gap: 0;
}
.wcf-ma-tab {
  flex: 1;
  padding: 10px 8px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  margin-bottom: -2px;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.wcf-ma-tab.active {
  color: var(--ma-accent);
  border-bottom-color: var(--ma-accent);
}
.wcf-ma-tab svg { transition: color .2s; }
.wcf-ma-tab.active svg { color: var(--ma-accent); }

/* ── Panel (Login / Register) ── */
.wcf-ma-panel { display: none; }
.wcf-ma-panel.active { display: block; }

/* ── Titles ── */
.wcf-ma-title {
  font-size: var(--ma-title-size);
  font-weight: var(--ma-title-weight);
  color: var(--ma-heading);
  margin-bottom: 5px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.wcf-ma-sub {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 26px;
}

/* ── Form ── */
.wcf-ma-form { display: flex; flex-direction: column; gap: 18px; }
.wcf-ma-group { display: flex; flex-direction: column; gap: 6px; }

.wcf-ma-label {
  font-size: var(--ma-label-size);
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.wcf-ma-label .req { color: var(--ma-accent); margin-left: 2px; }

.wcf-ma-input-wrap { position: relative; }

.wcf-ma-input {
  width: 100%;
  height: var(--ma-input-h);
  padding: 0 42px 0 16px;
  border: 1.5px solid var(--ma-input-border);
  border-radius: var(--ma-input-radius);
  font-size: var(--ma-input-size);
  color: var(--ma-heading);
  background: var(--ma-card-bg);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.wcf-ma-input.has-icon { padding-left: 42px; }
.wcf-ma-input:focus {
  border-color: var(--ma-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ma-accent) 12%, transparent);
}
.wcf-ma-input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.wcf-ma-input-eye {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; color: #9ca3af; padding: 4px;
}
.wcf-ma-input-eye:hover { color: var(--ma-accent); }

/* ── Footer row (remember / forgot) ── */
.wcf-ma-form-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.wcf-ma-checkbox {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: #6b7280; cursor: pointer;
}
.wcf-ma-checkbox input[type=checkbox] { accent-color: var(--ma-accent); width: 15px; height: 15px; cursor: pointer; }
.wcf-ma-forgot {
  font-size: 13px; color: var(--ma-accent); font-weight: 500;
  text-decoration: none; transition: opacity .15s;
}
.wcf-ma-forgot:hover { opacity: .75; }

/* ── Submit Button ── */
.wcf-ma-btn {
  width: 100%;
  height: var(--ma-btn-h);
  background: var(--ma-btn-bg);
  color: var(--ma-btn-color);
  border: none;
  border-radius: var(--ma-btn-radius);
  font-size: var(--ma-btn-size);
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
  letter-spacing: .2px;
}
.wcf-ma-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.wcf-ma-btn--accent { background: var(--ma-accent) !important; color: #fff !important; }

/* ── Divider ── */
.wcf-ma-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: #9ca3af; margin: 2px 0;
}
.wcf-ma-divider::before, .wcf-ma-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--ma-card-border);
}

/* ── Social Buttons ── */
.wcf-ma-socials { display: flex; flex-direction: column; gap: 10px; }
.wcf-ma-social-btn {
  width: 100%; height: 42px;
  border: 1.5px solid var(--ma-card-border);
  border-radius: var(--ma-input-radius);
  background: var(--ma-card-bg);
  font-size: 13px; font-weight: 600;
  color: var(--ma-heading);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: all .15s;
}
.wcf-ma-social-btn:hover { border-color: var(--ma-accent); }

/* ── Switch Link ── */
.wcf-ma-switch {
  text-align: center; font-size: 13px; color: #6b7280; margin-top: 14px;
}
.wcf-ma-switch a {
  color: var(--ma-accent); font-weight: 600; text-decoration: none; cursor: pointer;
}
.wcf-ma-switch a:hover { text-decoration: underline; }

/* ── Strength Bar ── */
.wcf-ma-strength { display: flex; gap: 4px; margin-top: 6px; }
.wcf-ma-strength-bar { flex: 1; height: 3px; border-radius: 2px; background: var(--ma-card-border); transition: background .3s; }
.wcf-ma-strength-bar.weak   { background: #ef4444; }
.wcf-ma-strength-bar.medium { background: #f59e0b; }
.wcf-ma-strength-bar.strong { background: #22c55e; }
.wcf-ma-strength-label { font-size: 10.5px; color: #9ca3af; margin-top: 3px; }

/* ── Animation ── */
@keyframes wcf-ma-fadein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wcf-ma-anim { animation: wcf-ma-fadein .38s ease both; }

/* ── Responsive ── */
@media (max-width: 640px) {
  #wcf-ma-page.wcf-ma-layout-split .wcf-ma-container { grid-template-columns: 1fr; }
  .wcf-ma-split-left { display: none; }
  .wcf-ma-card { padding: 28px 20px; }
}

/* ── WooCommerce native form restyle ── */
#wcf-ma-page .woocommerce-form__label {
  font-size: var(--ma-label-size) !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  margin-bottom: 6px !important;
  display: block !important;
}
#wcf-ma-page .woocommerce-form__label .required { color: var(--ma-accent) !important; }

#wcf-ma-page .woocommerce-Input,
#wcf-ma-page input[type="text"],
#wcf-ma-page input[type="email"],
#wcf-ma-page input[type="password"] {
  width: 100% !important;
  height: var(--ma-input-h) !important;
  padding: 0 16px !important;
  border: 1.5px solid var(--ma-input-border) !important;
  border-radius: var(--ma-input-radius) !important;
  font-size: var(--ma-input-size) !important;
  color: var(--ma-heading) !important;
  background: var(--ma-card-bg) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}
#wcf-ma-page .woocommerce-Input:focus,
#wcf-ma-page input[type="text"]:focus,
#wcf-ma-page input[type="email"]:focus,
#wcf-ma-page input[type="password"]:focus {
  border-color: var(--ma-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ma-accent) 12%, transparent) !important;
}

#wcf-ma-page .woocommerce-form-row {
  margin-bottom: 18px !important;
  padding: 0 !important;
  clear: both !important;
}
#wcf-ma-page .woocommerce-form-row:last-of-type { margin-bottom: 0 !important; }

/* Remember me + Lost password row */
#wcf-ma-page .woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
}
#wcf-ma-page .woocommerce-form__input-checkbox {
  accent-color: var(--ma-accent) !important;
  width: 15px !important; height: 15px !important;
}
#wcf-ma-page .lost_password { display: block; text-align: right; margin-top: 8px; }
#wcf-ma-page .lost_password a {
  font-size: 13px !important;
  color: var(--ma-accent) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

/* Submit buttons */
#wcf-ma-page button[type="submit"],
#wcf-ma-page .button,
#wcf-ma-page input[type="submit"] {
  width: 100% !important;
  height: var(--ma-btn-h) !important;
  background: var(--ma-btn-bg) !important;
  color: var(--ma-btn-color) !important;
  border: none !important;
  border-radius: var(--ma-btn-radius) !important;
  font-size: var(--ma-btn-size) !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all .2s !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: .2px !important;
  margin-top: 4px !important;
}
#wcf-ma-page button[type="submit"]:hover,
#wcf-ma-page .button:hover,
#wcf-ma-page input[type="submit"]:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.15) !important;
}
#wcf-ma-page .woocommerce-form-register button[type="submit"] {
  background: var(--ma-accent) !important;
  color: #fff !important;
}

/* Privacy policy notice */
#wcf-ma-page .woocommerce-privacy-policy-text {
  font-size: 11px !important;
  color: #9ca3af !important;
  line-height: 1.5 !important;
  margin-top: 10px !important;
}

/* Remove default WC column classes */
#wcf-ma-page .col2-set { display: block !important; float: none !important; }
#wcf-ma-page .col2-set .col-1,
#wcf-ma-page .col2-set .col-2 { float: none !important; width: 100% !important; }

/* ── WooCommerce Notice / Alert Stili ── */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  border-radius: 10px !important;
  padding: 14px 18px !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  border-top: none !important;
  list-style: none !important;
  animation: wcf-notice-in .3s ease both;
}
@keyframes wcf-notice-in {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.woocommerce-error {
  background: #fff5f5 !important;
  border-left: 4px solid #ef4444 !important;
  color: #991b1b !important;
}
.woocommerce-message {
  background: #f0fdf4 !important;
  border-left: 4px solid #22c55e !important;
  color: #14532d !important;
}
.woocommerce-info {
  background: color-mix(in srgb, var(--ma-accent, #f27a1a) 8%, white) !important;
  border-left: 4px solid var(--ma-accent, #f27a1a) !important;
  color: #1f1235 !important;
}
/* Notice içindeki liste elemanları */
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* WC'nin varsayılan ok ikonunu gizle */
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before { display: none !important; }

/* İkon */
.wcf-notice-icon {
  font-style: normal;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.woocommerce-error   .wcf-notice-icon { color: #ef4444; }
.woocommerce-message .wcf-notice-icon { color: #22c55e; }
.woocommerce-info    .wcf-notice-icon { color: var(--ma-accent, #f27a1a); }

/* Notice içindeki linkler */
.woocommerce-error a   { color: #ef4444 !important; font-weight: 600 !important; }
.woocommerce-message a { color: #22c55e !important; font-weight: 600 !important; }
.woocommerce-info a    { color: var(--ma-accent, #f27a1a) !important; font-weight: 600 !important; }

/* ── WC form register butonu accent rengi ── */
#wcf-ma-panel-register button[type="submit"],
#wcf-ma-panel-register .woocommerce-Button,
.woocommerce-form-register button[type="submit"] {
  background: var(--ma-accent, #f27a1a) !important;
  color: #fff !important;
}

/* ── Lost Password Page ── */
.wcf-ma-lp-card {
  max-width: 460px;
  margin: 0 auto;
}

.wcf-ma-lp-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #9ca3af; text-decoration: none;
  margin-bottom: 20px; transition: color .15s;
}
.wcf-ma-lp-back:hover { color: var(--ma-accent, #f27a1a); }
.wcf-ma-lp-back svg { transition: transform .2s; }
.wcf-ma-lp-back:hover svg { transform: translateX(-3px); }

.wcf-ma-lp-icon-wrap {
  width: 60px; height: 60px;
  background: color-mix(in srgb, var(--ma-accent, #f27a1a) 10%, white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  animation: wcf-ma-lp-pulse 2.5s ease-out infinite;
}
@keyframes wcf-ma-lp-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ma-accent,#f27a1a) 30%, transparent); }
  70%  { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.wcf-ma-lp-icon-wrap svg { color: var(--ma-accent, #f27a1a); }

/* Steps */
.wcf-ma-lp-steps {
  display: flex; align-items: center;
  margin-bottom: 26px;
}
.wcf-ma-lp-step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 6px; position: relative;
}
.wcf-ma-lp-step:not(:last-child)::after {
  content: '';
  position: absolute; top: 13px; left: calc(50% + 14px);
  width: calc(100% - 28px); height: 2px;
  background: var(--ma-card-border, #e5e7eb); transition: background .3s;
}
.wcf-ma-lp-step.done:not(:last-child)::after { background: var(--ma-accent, #f27a1a); }
.wcf-ma-lp-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--ma-card-border, #e5e7eb);
  background: var(--ma-card-bg, #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #9ca3af;
  transition: all .3s; z-index: 1;
}
.wcf-ma-lp-step.active .wcf-ma-lp-step-dot,
.wcf-ma-lp-step.done   .wcf-ma-lp-step-dot {
  border-color: var(--ma-accent, #f27a1a);
  background: var(--ma-accent, #f27a1a);
  color: #fff;
}
.wcf-ma-lp-step-label { font-size: 10px; color: #9ca3af; font-weight: 500; white-space: nowrap; }
.wcf-ma-lp-step.active .wcf-ma-lp-step-label { color: var(--ma-accent, #f27a1a); font-weight: 600; }

/* Info box */
.wcf-ma-lp-info {
  background: color-mix(in srgb, var(--ma-accent, #f27a1a) 8%, white);
  border: 1px solid color-mix(in srgb, var(--ma-accent, #f27a1a) 25%, white);
  border-radius: 10px; padding: 12px 14px;
  font-size: 13px; color: #4b5563; line-height: 1.6;
  display: flex; gap: 10px; align-items: flex-start;
}
.wcf-ma-lp-info svg { color: var(--ma-accent, #f27a1a); }

/* Title center override for lost password */
#wcf-ma-page .wcf-ma-lp-card .wcf-ma-title { text-align: center !important; }
#wcf-ma-page .wcf-ma-lp-card .wcf-ma-sub   { text-align: center !important; margin-bottom: 22px; }

/* ── Lost Password — Success State ── */
.wcf-ma-lp-success-icon {
  width: 80px; height: 80px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  animation: wcf-ma-success-pop .5s cubic-bezier(.175,.885,.32,1.275) both,
             wcf-ma-success-pulse 2.5s ease-out 0.5s infinite;
}
@keyframes wcf-ma-success-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes wcf-ma-success-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.3); }
  70%  { box-shadow: 0 0 0 16px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.wcf-ma-lp-success-icon svg { color: #22c55e; }

/* Ghost button variant */
.wcf-ma-btn--ghost {
  background: transparent !important;
  color: var(--ma-accent, #f27a1a) !important;
  border: 2px solid var(--ma-accent, #f27a1a) !important;
}
.wcf-ma-btn--ghost:hover {
  background: var(--ma-accent, #f27a1a) !important;
  color: #fff !important;
}

/* WC default lost-password notice — gizle, bizim template halleder */
#wcf-ma-page ~ .woocommerce-message { display: none !important; }

/* Uzun açıklama metni (WC'nin varsayılan "A password reset email..." paragrafı) */
.woocommerce > p:not([class]) { display: none !important; }
