/* ===========================================
   Beauty Center – Login (Rose Quartz Theme)
   Logo ile uyumlu pembe & rose gold tonları
   =========================================== */

*,
*::before,
*::after { box-sizing: border-box; }

:root{
  /* Açık tema (Spa / Güzellik Paleti) */
  --bg: #fff7fb;             /* açık pembe zemin */
  --bg-2: #ffeef6cc;         /* yarı saydam örtü */
  --panel: #ffffff;          /* kart arka planı */
  --text: #1f1b22;           /* koyu morumsu gri */
  --muted: #6b6770;          /* ikincil metin */
  --border: #f5d9e8;         /* açık pembe çerçeve */

  /* Logo uyumlu tonlar */
  --brand-a: #e85b93;        /* rose */
  --brand-b: #ff8fb8;        /* açık pembe */
  --brand-c: #c43d78;        /* koyu gül */

  --ok: #16a34a;
  --error: #b42318;

  --radius: 18px;
  --shadow: 0 18px 48px rgba(200, 60, 120, .12);
  --ring: 0 0 0 4px rgba(232,91,147,.28);
  --transition: 220ms ease;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #110e12;
    --bg-2: #1b141acc;
    --panel: #171218;
    --text: #f4f2f4;
    --muted: #b5aeb8;
    --border: #2c2430;
    --shadow: 0 18px 48px rgba(0,0,0,.5);
    --ring: 0 0 0 3px rgba(232, 91, 147, .35);
  }
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
}

/* === Arka Plan (yumuşak pembe ışımalar) === */
.login-body{
  min-height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1100px 560px at 88% -8%, color-mix(in oklab, var(--brand-b) 25%, #fff 75%), transparent 60%),
    radial-gradient(1000px 620px at -10% 100%, color-mix(in oklab, var(--brand-a) 20%, #fff 80%), transparent 60%),
    linear-gradient(180deg, var(--bg), #ffffff);
  padding: 28px;
  position: relative;
  isolation: isolate;
}
.login-body::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(0deg, rgba(232,91,147,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,91,147,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events:none;
  z-index:-1;
}

/* === Container === */
.login-container{
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, var(--panel), color-mix(in oklab, var(--panel) 90%, #ffe9f2 10%));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: pop var(--transition);
}

@keyframes pop{
  from{ opacity: 0; transform: translateY(8px) scale(.985); }
  to{   opacity: 1; transform: translateY(0) scale(1); }
}

/* === Logo === */
.logo-box{
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.logo-img{
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(232,91,147,.25));
}

/* === Başlık === */
.login-container h2{
  text-align: center;
  margin: 12px 0 18px;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b), var(--brand-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === Hata kutusu === */
.error{
  margin: 0 0 14px;
  padding: 10px 12px;
  background: rgba(239, 68, 68, .08);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, .25);
  border-radius: 12px;
  font-size: 14px;
}

/* === Form === */
form{
  display: grid;
  gap: 14px;
}

input[type="text"],
input[type="password"]{
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #1a1720;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input::placeholder{ color: var(--muted); }
input:focus{
  border-color: color-mix(in oklab, var(--brand-b) 60%, var(--brand-a) 40%);
  box-shadow: var(--ring);
}

/* === Buton === */
button[type="submit"]{
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-c), var(--brand-a), var(--brand-b));
  transition: all var(--transition);
  box-shadow: 0 14px 28px rgba(196,61,120,.28);
}
button[type="submit"]:hover{ filter: brightness(1.05); }
button[type="submit"]:active{ transform: translateY(1px); }
button[type="submit"]:focus-visible{ box-shadow: 0 0 0 4px rgba(232,91,147,.3); }
button[disabled]{ opacity: .7; cursor: not-allowed; }

/* === Alt yardım metni === */
.helper{
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.helper a{
  background: linear-gradient(90deg, var(--brand-b), var(--brand-a));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  font-weight: 700;
}
.helper a:hover{ text-decoration: underline; }

/* === Responsive === */
@media (max-width: 520px){
  .login-container{ padding: 24px 18px 18px; border-radius: 14px; }
  .logo-img{ height: 70px; }
}

/* === Hareket azaltma === */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}