/* Premium SaaS sign-in — split layout, glass card, dark mode */

/* Giriş sayfası — yeşil yok; nötr slate + soğuk gri */
:root {
  --color-primary: #1e293b;
  --color-primary-hover: #0f172a;
  --color-accent: #475569;
  --color-accent-soft: rgba(71, 85, 105, 0.18);
  --sp-glass-bg: rgba(255, 255, 255, 0.94);
  --sp-glass-border: rgba(15, 23, 42, 0.08);
  --sp-input-bg: #ffffff;
  --sp-text: #0f172a;
  --sp-text-muted: #64748b;
  --sp-transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --sp-glass-bg: rgba(15, 23, 42, 0.88);
  --sp-glass-border: rgba(255, 255, 255, 0.1);
  --sp-input-bg: rgba(30, 41, 59, 0.85);
  --sp-text: #f1f5f9;
  --sp-text-muted: #94a3b8;
}

/* ——— Shell ——— */
body.sign-body.sign-body--premium {
  background: #f8fafc;
  background-image: none;
  transition: background 0.35s ease;
}

html[data-theme="dark"] body.sign-body.sign-body--premium {
  background: #020617;
  background-image: none;
}

.sign-shell--premium {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .sign-shell--premium {
    flex-direction: row;
  }
}

/* ——— Theme toggle ——— */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--sp-transition), background var(--sp-transition), box-shadow var(--sp-transition);
}

.theme-toggle:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm, 0 4px 14px rgba(15, 23, 42, 0.08));
  border-color: rgba(71, 85, 105, 0.35);
}

.theme-toggle:active {
  transform: scale(0.98);
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

/* ——— Left marketing ——— */
.sign-aside--premium {
  display: none;
  flex: 0 0 46%;
  max-width: 560px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #020617 0%, #0f172a 45%, #1e293b 100%);
  color: #fff;
}

@media (min-width: 900px) {
  .sign-aside--premium {
    display: flex;
  }
}

.sign-aside--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 20% 30%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(99, 102, 241, 0.18), transparent 50%);
  pointer-events: none;
}

.sign-aside--premium::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 22 L52 27 L35 32 L30 49 L25 32 L8 27 L25 22 Z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
  animation: sp-pattern-drift 80s linear infinite;
  pointer-events: none;
}

@keyframes sp-pattern-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-60px, -40px);
  }
}

.sp-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  animation: sp-float 18s ease-in-out infinite;
}

.sp-float--1 {
  width: 280px;
  height: 280px;
  background: rgba(59, 130, 246, 0.35);
  top: -8%;
  right: -5%;
  animation-delay: 0s;
}

.sp-float--2 {
  width: 200px;
  height: 200px;
  background: rgba(129, 140, 248, 0.22);
  bottom: 15%;
  left: -6%;
  animation-delay: -6s;
}

.sp-float--3 {
  width: 140px;
  height: 140px;
  background: rgba(71, 85, 105, 0.45);
  top: 45%;
  left: 35%;
  animation-delay: -12s;
}

@keyframes sp-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(12px, -18px) scale(1.05);
  }
  66% {
    transform: translate(-10px, 14px) scale(0.95);
  }
}

.sign-aside-inner--premium {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3.5rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  /* Sol panel — body.sign-body koyu metin renginin mirasını keser */
  color: #f8fafc;
}

.sp-aside-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  color: #cbd5e1;
  opacity: 0.95;
}

.sp-aside-headline {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 18ch;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.sp-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sp-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: #f1f5f9;
}

.sp-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform var(--sp-transition), background var(--sp-transition);
}

.sp-feature-list li:hover .sp-feature-icon {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.2);
}

.sp-feature-icon svg {
  width: 20px;
  height: 20px;
  opacity: 0.95;
}

/* Dashboard preview mock */
.sp-dash-preview {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  animation: sp-dash-pulse 5s ease-in-out infinite;
}

@keyframes sp-dash-pulse {
  0%,
  100% {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 22px 56px rgba(59, 130, 246, 0.12);
  }
}

.sp-dash-row {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 72px;
  margin-bottom: 0.85rem;
}

.sp-dash-bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.85), rgba(71, 85, 105, 0.55));
  animation: sp-bar 2.4s ease-in-out infinite alternate;
}

.sp-dash-bar:nth-child(1) {
  height: 35%;
  animation-delay: 0s;
}
.sp-dash-bar:nth-child(2) {
  height: 65%;
  animation-delay: 0.2s;
}
.sp-dash-bar:nth-child(3) {
  height: 48%;
  animation-delay: 0.4s;
}
.sp-dash-bar:nth-child(4) {
  height: 88%;
  animation-delay: 0.1s;
}
.sp-dash-bar:nth-child(5) {
  height: 52%;
  animation-delay: 0.35s;
}

@keyframes sp-bar {
  from {
    opacity: 0.75;
    transform: scaleY(0.92);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.sp-dash-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.sp-dash-cal span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Takvim başlığı: Türkçe gün kısaltmaları */
.sp-dash-cal span:nth-child(-n + 7) {
  font-size: 0.34rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  padding: 2px;
}

.sp-dash-cal span.is-active {
  background: rgba(96, 165, 250, 0.45);
  color: #fff;
  font-weight: 700;
}

/* Mobile kicker */
.sign-mobile-kicker {
  display: block;
  padding: 1.25rem 1.25rem 0.5rem;
  text-align: center;
  color: var(--sp-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

html[data-theme="dark"] .sign-mobile-kicker {
  color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 900px) {
  .sign-mobile-kicker {
    display: none;
  }
}

.sign-wrap--premium {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem 2.5rem;
}

/* ——— Stage (right) ——— */
.sign-stage--premium {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  transition: background 0.35s ease;
}

html[data-theme="dark"] .sign-stage--premium {
  background: linear-gradient(165deg, #020617 0%, #0f172a 50%, #1e293b 100%);
}

/* ——— Glass card ——— */
.auth-card--premium {
  width: 100%;
  max-width: 420px;
  background: var(--sp-glass-bg);
  border-radius: 1.25rem;
  border: 1px solid var(--sp-glass-border);
  box-shadow: 0 12px 40px -18px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: box-shadow var(--sp-transition), transform var(--sp-transition), border-color var(--sp-transition);
}

html[data-theme="dark"] .auth-card--premium {
  background: var(--sp-glass-bg);
  border-color: var(--sp-glass-border);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.55);
}

.auth-card--premium.auth-card--wide {
  max-width: 520px;
}

.auth-card--premium:hover {
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 28px 56px -14px rgba(30, 41, 59, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.auth-card-header--premium {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .auth-card-header--premium {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.auth-card-header--premium img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  transition: transform var(--sp-transition);
}

.auth-card--premium:hover .auth-card-header--premium img {
  transform: scale(1.02);
}

.auth-card-body--premium {
  padding: 1.5rem 1.75rem 2rem;
}

.auth-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.35rem;
  text-align: center;
}

html[data-theme="dark"] .auth-card--premium .auth-eyebrow {
  color: #cbd5e1;
}

.auth-card--premium .auth-title {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 0.35rem;
  color: var(--sp-text);
  letter-spacing: -0.02em;
}

/* Koyu kart / koyu tema: başlık asla koyu mürekkep olmasın */
html[data-theme="dark"] .auth-card--premium .auth-title {
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .auth-card--premium .auth-title {
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
  html:not([data-theme="light"]) .auth-card--premium .auth-sub {
    color: #94a3b8;
  }
  html:not([data-theme="light"]) .auth-card--premium .auth-eyebrow {
    color: #cbd5e1;
  }
}

.auth-sub {
  text-align: center;
  font-size: 0.88rem;
  color: var(--sp-text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.45;
}

html[data-theme="dark"] .auth-card--premium .auth-sub {
  color: #94a3b8;
}

/* Input with icon */
.sp-input-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.sp-input-wrap .sp-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--sp-text-muted);
  pointer-events: none;
  transition: color var(--sp-transition);
  z-index: 1;
}

.sp-input-wrap .form-control {
  padding-left: 2.65rem;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--sp-input-bg);
  font-size: 0.95rem;
  color: var(--sp-text);
  transition: border-color var(--sp-transition), box-shadow var(--sp-transition), background var(--sp-transition);
}

html[data-theme="dark"] .sp-input-wrap .form-control {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--sp-text);
}

.sp-input-wrap .form-control::placeholder {
  color: var(--sp-text-muted);
  opacity: 0.75;
}

.sp-input-wrap .form-control:hover {
  border-color: rgba(71, 85, 105, 0.35);
}

.sp-input-wrap .form-control:focus {
  border-color: #64748b;
  box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.18);
  outline: none;
}

.sp-input-wrap:focus-within .sp-input-icon {
  color: #475569;
}

.sp-input-wrap label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--sp-text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

/* Remember / links row */
.auth-row-between {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-row-between .custom-checkbox label,
.auth-row-between .form-check-label {
  font-size: 0.85rem;
  color: var(--sp-text-muted);
  cursor: pointer;
}

.auth-link-muted {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

html[data-theme="dark"] .auth-link-muted {
  color: #94a3b8;
}

.auth-link-muted:hover {
  color: #334155;
  opacity: 0.95;
}

html[data-theme="dark"] .auth-link-muted:hover {
  color: #e2e8f0;
}

/* Submit button */
.btn-auth-submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #334155 0%, #1e293b 45%, #0f172a 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.35);
  transition: transform var(--sp-transition), box-shadow var(--sp-transition), filter var(--sp-transition);
  position: relative;
  overflow: hidden;
}

.btn-auth-submit:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.42);
  filter: brightness(1.06);
}

.btn-auth-submit:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.btn-auth-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-auth-submit.is-loading {
  color: transparent;
}

.btn-auth-submit.is-loading::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 50%;
  left: 50%;
  margin: -11px 0 0 -11px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sp-spin 0.65s linear infinite;
}

@keyframes sp-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-footer-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.88rem;
  color: var(--sp-text-muted);
}

html[data-theme="dark"] .auth-footer-links {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.auth-footer-links a {
  font-weight: 700;
  color: var(--color-primary);
}

html[data-theme="dark"] .auth-footer-links a {
  color: #cbd5e1;
}

.auth-card--premium .text-danger {
  font-size: 0.82rem;
}

.auth-card--premium .auth-lead {
  color: #475569;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-card--premium label,
.auth-card--premium .form-check-label,
.auth-card--premium .text-muted {
  color: var(--sp-text-muted);
}

.auth-card--premium .sp-input-wrap {
  margin-bottom: 0.85rem;
}

.auth-card--premium .form-control,
.auth-card--premium .form-select {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--sp-input-bg);
  color: var(--sp-text);
}

.auth-card--premium .form-control:focus,
.auth-card--premium .form-select:focus {
  border-color: #64748b;
  box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.2);
}

html[data-theme="dark"] .auth-card--premium .form-control,
html[data-theme="dark"] .auth-card--premium .form-select {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--sp-input-bg);
  color: var(--sp-text);
}

html[data-theme="dark"] .auth-card--premium label,
html[data-theme="dark"] .auth-card--premium .form-check-label,
html[data-theme="dark"] .auth-card--premium .text-muted {
  color: var(--sp-text-muted);
}

.auth-card--premium .sign-check {
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.auth-card--premium .sign-check .form-check-input {
  margin-top: 0.25rem;
}

.auth-card--premium .sign-check a {
  color: var(--color-primary);
  text-decoration: underline;
}

html[data-theme="dark"] .auth-card--premium .sign-check {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.auth-card--premium .form-check-label,
.auth-card--premium .form-check-label a {
  font-size: 0.86rem;
  line-height: 1.55;
}

.auth-card--premium .form-check-input {
  border-color: #94a3b8;
}

.auth-card--premium .form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.auth-card--premium .text-danger {
  color: #dc2626 !important;
}

.auth-card--premium .form-control::placeholder {
  color: var(--sp-text-muted);
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .sp-float,
  .sp-dash-bar,
  .sign-aside--premium::after,
  .sp-dash-preview {
    animation: none !important;
  }

  .theme-toggle:hover,
  .btn-auth-submit:hover:not(:disabled) {
    transform: none;
  }
}

/* ——— Dark mode: sign-check link rengi ——— */
html[data-theme="dark"] .auth-card--premium .sign-check a {
  color: #5eead4;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .auth-card--premium .sign-check a {
    color: #5eead4;
  }
}

/* ——— Mobil: yatay taşmayı engelle ——— */
.sign-wrap--premium {
  overflow-x: hidden;
}

.auth-card--premium,
.auth-card--premium .auth-card-body--premium {
  max-width: 100%;
  box-sizing: border-box;
}

.auth-card--premium .form-control,
.auth-card--premium .form-select {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .auth-card-body--premium {
    padding: 1.25rem 1rem 1.5rem;
  }

  .sp-input-wrap .form-control {
    padding-left: 0.85rem;
  }
}
