/* Hazırlansın — Panel giriş ekranı */
:root {
  --primary: #E8552D; --primary-dark: #C4411D; --accent: #FFB547;
  --ink: #2B1D14; --muted: #8A7A6E; --line: #EADBCD; --bg: #FFF8F1;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); }

.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }

/* ---------- Marka alanı ---------- */
.brand-side {
  position: relative; overflow: hidden; color: #fff; padding: 44px 56px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,181,71,.45) 0, transparent 38%),
    radial-gradient(circle at 10% 95%, rgba(43,29,20,.35) 0, transparent 45%),
    linear-gradient(150deg, #EF6436 0%, #E8552D 45%, #C93F1C 100%);
  display: flex; flex-direction: column;
}
.brand-side::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 22px 22px;
}
.brand-top { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.5rem; position: relative; z-index: 1; }
.brand-top img { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.brand-copy { margin-top: 9vh; position: relative; z-index: 1; max-width: 520px; }
.brand-copy h1 { font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.12; margin: 0; font-weight: 900; letter-spacing: -.02em; }
.brand-copy h1 em { font-style: normal; color: var(--ink); background: var(--accent); padding: 0 .25em; border-radius: .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.brand-copy p { font-size: 1.08rem; opacity: .95; margin: 18px 0 0; max-width: 440px; line-height: 1.5; }

.mock { position: relative; height: 230px; margin: 36px 0 24px; z-index: 1; }
.mock-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 14px; width: 240px;
  box-shadow: 0 18px 40px rgba(60, 20, 5, .28); animation: float 6s ease-in-out infinite;
}
.mock-card.c1 { left: 0; top: 10px; }
.mock-card.c2 { left: 210px; top: 0; width: 210px; animation-delay: -2s; transform: rotate(3deg); }
.mock-card.c3 { left: 170px; top: 140px; width: 200px; animation-delay: -4s; }
.mc-head { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; margin-bottom: 6px; }
.mc-line { font-size: .86rem; padding: 3px 0; border-top: 1px dashed #F0E4D8; }
.mc-line b { color: var(--primary-dark); }
.mc-line small { color: var(--muted); margin-left: 4px; }
.mc-foot { text-align: right; font-weight: 900; margin-top: 6px; }
.pill { font-size: .72rem; font-weight: 900; padding: 2px 9px; border-radius: 99px; }
.pill.new { background: #FFF1D9; color: #9A5B00; }
.pill.call { background: #ECE7FA; color: #4B3C99; }
.pill.wait { background: #FDE7DF; color: var(--primary-dark); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.features { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.features li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .98rem; }
.features li span { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Form alanı ---------- */
.form-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; }
.card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 26px; padding: 34px 30px 26px;
  box-shadow: 0 1px 0 var(--line), 0 24px 60px rgba(43, 29, 20, .08);
}
.card-logo { width: 54px; height: 54px; display: none; margin: 0 auto 6px; }
.card h2 { margin: 0; font-size: 1.7rem; font-weight: 900; letter-spacing: -.01em; }
.card .sub { margin: 6px 0 22px; color: var(--muted); font-weight: 600; }

.alert { display: flex; gap: 10px; align-items: flex-start; background: #FDE7DF; color: #A2321A; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; font-weight: 700; font-size: .92rem; }
.alert ul { margin: 0; padding: 0; list-style: none; }
.alert .validation-summary-valid { display: none; }

.fld { display: block; margin-bottom: 16px; }
.lbl { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 7px; }
.ctrl { position: relative; display: flex; align-items: center; }
.ctrl svg { position: absolute; left: 14px; width: 19px; height: 19px; fill: #C2AE9E; pointer-events: none; transition: fill .15s; }
.ctrl input {
  width: 100%; height: 52px; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px 0 44px;
  font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); background: #FFFCF9; outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.ctrl input::placeholder { color: #C9B8AA; font-weight: 600; }
.ctrl input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(232, 85, 45, .12); }
.ctrl:focus-within svg { fill: var(--primary); }
.ctrl input#password { padding-right: 78px; }
.eye { position: absolute; right: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: #F6EEE6; color: var(--ink); font: inherit; font-weight: 800; font-size: .82rem; cursor: pointer; }
.eye:hover { background: #EFE3D7; }

.row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 20px; }
.remember { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; cursor: pointer; color: #5E4E43; }
.remember input { width: 18px; height: 18px; accent-color: var(--primary); }

.submit {
  width: 100%; height: 54px; border: 0; border-radius: 15px; cursor: pointer; position: relative;
  background: linear-gradient(135deg, #EF6436, var(--primary-dark)); color: #fff; font: inherit; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(232, 85, 45, .35); transition: transform .1s, box-shadow .15s;
}
.submit:hover { box-shadow: 0 14px 30px rgba(232, 85, 45, .42); }
.submit:active { transform: translateY(1px); }
.submit .spin { display: none; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit.loading .txt { visibility: hidden; }
.submit.loading .spin { display: block; }
.submit:disabled { cursor: wait; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot { text-align: center; color: var(--muted); font-size: .8rem; line-height: 1.55; margin: 18px 0 0; }
.copy { color: #B4A090; font-size: .8rem; font-weight: 700; margin-top: 18px; }

.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .brand-side { padding: 22px 22px 70px; min-height: auto; }
  .brand-copy { margin-top: 22px; }
  .brand-copy h1 { font-size: 1.7rem; }
  .brand-copy p { font-size: .95rem; margin-top: 10px; }
  .mock, .features { display: none; }
  .form-side { margin-top: -54px; padding-top: 0; justify-content: flex-start; }
  .card { padding: 26px 20px 22px; border-radius: 22px; }
  .card h2 { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { .mock-card { animation: none; } }

/* ---------- Bekleme ekranı ---------- */
.busy {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 248, 241, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .18s; cursor: wait;
}
.busy[hidden] { display: none; }
.busy.on { opacity: 1; }
.busy-card {
  background: #fff; border-radius: 22px; padding: 26px 34px 22px; min-width: 240px; text-align: center;
  box-shadow: 0 24px 60px rgba(43, 29, 20, .18); border: 1px solid var(--line);
  transform: translateY(8px) scale(.97); transition: transform .2s;
}
.busy.on .busy-card { transform: none; }
.busy-card b { display: block; font-size: 1.05rem; margin-top: 12px; }
.busy-card small { display: block; color: var(--muted); font-weight: 700; margin-top: 2px; }
.busy-plate { position: relative; width: 64px; height: 64px; margin: 14px auto 0; }
.busy-plate img { width: 64px; height: 64px; animation: plate 1.2s ease-in-out infinite; }
.busy-plate .steam {
  position: absolute; top: -16px; width: 5px; height: 16px; border-radius: 4px; background: var(--accent);
  opacity: 0; animation: steam 1.4s ease-in-out infinite;
}
.busy-plate .s1 { left: 18px; } .busy-plate .s2 { left: 30px; animation-delay: .25s; } .busy-plate .s3 { left: 42px; animation-delay: .5s; }
.busy-bar { height: 4px; border-radius: 4px; background: #F3EBE3; overflow: hidden; margin-top: 16px; }
.busy-bar span { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); animation: bar 1.1s ease-in-out infinite; }
@keyframes plate { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-4deg); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px) scaleY(.6); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px) scaleY(1.1); } }
@keyframes bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
body.is-busy { cursor: wait; }
@media (prefers-reduced-motion: reduce) { .busy-plate img, .busy-plate .steam, .busy-bar span { animation-duration: 3s; } }
