﻿@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Poppins:wght@500;600;700&display=swap");

:root {
  --py-primary: #4F46E5;
  --py-primary-hover: #4338CA;
  --py-primary-soft: #EEF2FF;
  --py-surface: #F8FAFC;
  --py-sidebar-bg: #1E293B;
  --py-card-radius: 12px;
  --py-success: #059669;
  --py-success-soft: #ECFDF5;
  --py-warning: #D97706;
  --py-danger: #E11D48;
  --py-text: #0F172A;
  --py-text-muted: #64748B;
  --py-border: #E2E8F0;
  --py-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --py-font-heading: "Poppins", system-ui, sans-serif;
  --py-font-body: "DM Sans", system-ui, sans-serif;
}

html:has(body.auth-page) {
  font-size: 14px;
}

body.auth-page {
  margin: 0;
  font-family: var(--py-font-body);
  color: var(--py-text);
  background: var(--py-surface);
}

body.auth-page h1,
body.auth-page h2,
body.auth-page h3 {
  font-family: var(--py-font-heading);
}

.card-py {
  background: #fff;
  border: 1px solid var(--py-border);
  border-radius: var(--py-card-radius);
  box-shadow: var(--py-shadow);
}

.btn-primary {
  background: var(--py-primary);
  border-color: var(--py-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--py-primary-hover);
  border-color: var(--py-primary-hover);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--py-primary);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.password-requirements {
  background: var(--py-primary-soft);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: var(--py-text);
  font-size: 0.8125rem;
}

.password-requirements-list {
  margin: 0;
  padding-left: 1.1rem;
}

/* --- Auth pages (login, forgot password, reset) --- */

.auth-skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.5rem 0.85rem;
  background: #fff;
  color: var(--py-primary);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.auth-skip-link:focus {
  left: 0.75rem;
}

.auth-page {
  min-height: 100vh;
  background: var(--py-surface);
}

.auth-shell {
  display: flex;
  min-height: 100vh;
}

.auth-brand-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: linear-gradient(160deg, var(--py-sidebar-bg) 0%, #0F172A 48%, #1E3A5F 100%);
  color: #F8FAFC;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.14) 0%, transparent 45%);
  pointer-events: none;
}

.auth-brand {
  position: relative;
  max-width: 520px;
  width: 100%;
  z-index: 1;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.auth-brand-favicon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: contain;
  background: rgba(30, 64, 175, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35);
}

.auth-brand-title {
  font-family: var(--py-font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #F8FAFC;
}

.auth-brand-sub {
  font-size: 1.05rem;
  color: #B8C5D6;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* Ürün panosu — login sol panel */
.auth-product-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 0.25rem;
}

.auth-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.05rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.55);
  color: #E2E8F0;
  min-height: 10rem;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.auth-product-card:hover,
.auth-product-card:focus-visible {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.78);
  outline: none;
  transform: translateY(-1px);
}

.auth-product-card:focus-visible {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.auth-product-card.is-active {
  border-color: rgba(56, 189, 248, 0.55);
  background:
    linear-gradient(165deg, rgba(30, 58, 138, 0.42) 0%, rgba(15, 23, 42, 0.72) 65%),
    rgba(15, 23, 42, 0.6);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.18);
}

.auth-product-card--mutabakat {
  border-color: rgba(148, 163, 184, 0.38);
  background:
    linear-gradient(165deg, rgba(14, 165, 233, 0.14) 0%, rgba(15, 23, 42, 0.62) 55%),
    rgba(15, 23, 42, 0.55);
}

.auth-product-card--mutabakat.is-active {
  border-color: rgba(56, 189, 248, 0.6);
  background:
    linear-gradient(165deg, rgba(14, 165, 233, 0.28) 0%, rgba(15, 23, 42, 0.72) 60%),
    rgba(15, 23, 42, 0.6);
  box-shadow:
    inset 0 0 0 1px rgba(125, 211, 252, 0.22),
    0 8px 24px rgba(2, 6, 23, 0.28);
}

.auth-product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.auth-product-card__icon {
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(30, 64, 175, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93C5FD;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.auth-product-card--mutabakat .auth-product-card__icon {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(56, 189, 248, 0.32);
  color: #7DD3FC;
}

.auth-product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.auth-product-card__title {
  font-family: var(--py-font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  color: #F8FAFC;
}

.auth-product-card__desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94A3B8;
}

.auth-product-card__points {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.auth-product-card__points li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #A5B4C8;
}

.auth-product-card__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #38BDF8;
}

.auth-product-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.16);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.auth-product-card__badge--panel {
  background: rgba(148, 163, 184, 0.14);
  color: #CBD5E1;
  border-color: rgba(148, 163, 184, 0.3);
}

.auth-product-note[hidden] {
  display: none !important;
}

.auth-card--mutabakat .auth-card-product-label {
  color: #0369A1;
}

.auth-brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.auth-marketplace-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid transparent;
}

.auth-marketplace-badge--trendyol {
  background: rgba(242, 122, 26, 0.18);
  color: #FDBA74;
  border-color: rgba(242, 122, 26, 0.35);
}

.auth-marketplace-badge--hepsiburada {
  background: rgba(255, 96, 0, 0.16);
  color: #FDBA74;
  border-color: rgba(255, 96, 0, 0.32);
}

.auth-marketplace-badge--n11 {
  background: rgba(123, 45, 142, 0.22);
  color: #E9D5FF;
  border-color: rgba(167, 85, 247, 0.35);
}

.auth-marketplace-badge--pttavm {
  background: rgba(255, 209, 0, 0.16);
  color: #FEF08A;
  border-color: rgba(255, 209, 0, 0.35);
}

.auth-marketplace-badge--idefix {
  background: rgba(227, 24, 55, 0.18);
  color: #FECACA;
  border-color: rgba(227, 24, 55, 0.35);
}

.auth-marketplace-badge--pazarama {
  background: rgba(21, 128, 61, 0.18);
  color: #BBF7D0;
  border-color: rgba(21, 128, 61, 0.35);
}

.marketplace-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
}

.marketplace-badge--trendyol {
  background: #fff7ed;
  color: #c2410c;
  border-color: rgba(234, 88, 12, 0.25);
}

.marketplace-badge--hepsiburada {
  background: #fff7ed;
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.22);
}

.marketplace-badge--n11 {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.22);
}

.marketplace-badge--pttavm {
  background: #fefce8;
  color: #a16207;
  border-color: rgba(202, 138, 4, 0.25);
}

.marketplace-badge--idefix {
  background: #fef2f2;
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.22);
}

.marketplace-badge--pazarama {
  background: #f0fdf4;
  color: #15803d;
  border-color: rgba(21, 128, 61, 0.22);
}

.auth-main {
  flex: 0 0 480px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
}

.auth-card-header {
  margin-bottom: 1.5rem;
}

.auth-card-product-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--py-primary);
}

.auth-card-title {
  font-family: var(--py-font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--py-text);
}

.auth-card-desc {
  font-size: 0.875rem;
  color: var(--py-text-muted);
  margin: 0;
  line-height: 1.5;
}

.auth-form .form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--py-text);
}

.auth-form .form-control {
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  border-color: var(--py-border);
}

.auth-form .input-group .input-group-text {
  border-color: var(--py-border);
  border-radius: 8px 0 0 8px;
  color: var(--py-text-muted);
}

.auth-form .input-group .form-control {
  border-radius: 0 8px 8px 0;
}

.auth-form .input-group:focus-within .input-group-text,
.auth-form .input-group:focus-within .form-control {
  border-color: var(--py-primary);
}

.auth-form .input-group:focus-within {
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
  border-radius: 8px;
}

.auth-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.auth-form-footer a {
  font-size: 0.8125rem;
  color: var(--py-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-form-footer a:hover {
  color: var(--py-primary-hover);
  text-decoration: underline;
}

.auth-submit {
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-family: var(--py-font-heading);
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--py-text-muted);
  text-decoration: none;
  margin-top: 1rem;
}

.auth-back-link:hover {
  color: var(--py-primary);
}

.auth-alert {
  border-radius: 8px;
  font-size: 0.875rem;
}

.auth-alert-success {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--py-success-soft);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.auth-alert-success .bi {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.auth-field-error,
.auth-form .field-validation-error {
  display: block;
  font-size: 0.75rem;
  color: var(--py-danger);
  margin-top: 0.35rem;
}

.auth-success-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--py-success-soft);
  color: var(--py-success);
  font-size: 1.65rem;
}

.auth-card--centered .auth-card-header {
  margin-bottom: 1.25rem;
}

@media (max-width: 991.98px) {
  .auth-shell {
    flex-direction: column;
  }

  .auth-brand-panel {
    padding: 2rem 1.5rem;
    min-height: auto;
  }

  .auth-brand {
    max-width: none;
    text-align: center;
  }

  .auth-brand-row {
    justify-content: center;
  }

  .auth-product-board {
    grid-template-columns: 1fr;
    text-align: left;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-brand-badges {
    justify-content: center;
  }

  .auth-main {
    flex: 1;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .auth-product-board {
    grid-template-columns: 1fr;
  }
}
