/* =========================================================================
   Business93 CRM — Giriş / doğrulama / şifre sayfaları (login, otp, şifre sıfırlama)
   Yalnızca body.auth-page olan sayfaları etkiler. Panel sayfalarına dokunmaz.
   ========================================================================= */
body.auth-page{
  --a-navy:#0b1730; --a-navy-2:#13254a; --a-blue:#2563eb; --a-blue-2:#1d4ed8;
  --a-ink:#0f172a; --a-text:#334155; --a-muted:#64748b; --a-line:#e2e8f0;
  --a-soft:#f1f5fb; --a-radius:22px;
  margin:0; min-height:100vh; min-height:100dvh;
  font-family:Inter,"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  color:var(--a-ink);
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(37,99,235,.13), transparent 60%),
    radial-gradient(700px 480px at 105% 110%, rgba(14,165,233,.12), transparent 60%),
    #eef2f8;
  display:flex; align-items:center; justify-content:center;
  padding:24px; box-sizing:border-box;
  -webkit-font-smoothing:antialiased;
}
.auth-page *,.auth-page *::before,.auth-page *::after{box-sizing:border-box}

/* ---------- Giriş: iki bölmeli kabuk ---------- */
.auth-shell{
  width:100%; max-width:1040px; display:grid; grid-template-columns:1.05fr 1fr;
  background:#fff; border-radius:28px; overflow:hidden;
  box-shadow:0 30px 80px -24px rgba(15,23,42,.28), 0 2px 6px rgba(15,23,42,.05);
  border:1px solid rgba(15,23,42,.06);
}
.auth-brand{
  position:relative; padding:40px 40px 34px; color:#e7edf9;
  background:
    radial-gradient(520px 340px at 110% -10%, rgba(59,130,246,.35), transparent 60%),
    radial-gradient(420px 300px at -20% 120%, rgba(14,165,233,.22), transparent 60%),
    linear-gradient(160deg,var(--a-navy) 0%,var(--a-navy-2) 100%);
  display:flex; flex-direction:column; gap:26px; min-width:0;
}
.auth-brand::after{ /* ince ızgara dokusu */
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.07;
  background-image:linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px);
  background-size:28px 28px; -webkit-mask-image:linear-gradient(180deg,#000,transparent 75%); mask-image:linear-gradient(180deg,#000,transparent 75%);
}
.auth-brand > *{position:relative; z-index:1}
.auth-brand-top{display:flex; align-items:center; gap:12px}
.auth-logo{
  width:44px; height:44px; border-radius:13px; display:grid; place-items:center; flex:0 0 auto;
  font-weight:800; font-size:20px; color:#fff;
  background:linear-gradient(135deg,#3b82f6,#1d4ed8); box-shadow:0 10px 24px -6px rgba(37,99,235,.6), inset 0 1px 0 rgba(255,255,255,.25);
}
.auth-brand-name{display:flex; flex-direction:column; line-height:1.2; min-width:0}
.auth-brand-name strong{font-size:16px; color:#fff; font-weight:700}
.auth-brand-name span{font-size:12.5px; color:#9fb2d6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.auth-brand-main{margin-top:auto}
.auth-brand h1{margin:0 0 12px; font-size:30px; line-height:1.18; font-weight:800; letter-spacing:-.02em; color:#fff}
.auth-brand h1 em{font-style:normal; background:linear-gradient(90deg,#93c5fd,#67e8f9); -webkit-background-clip:text; background-clip:text; color:transparent}
.auth-brand-sub{margin:0; font-size:14px; line-height:1.65; color:#b6c4de; max-width:440px}
.auth-quote{
  margin-top:20px; padding:14px 16px; border-radius:16px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10);
}
.auth-quote span{display:block; font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#7dd3fc; margin-bottom:6px}
.auth-quote p{margin:0; font-size:14.5px; line-height:1.55; color:#eef3fc; font-style:italic}
.auth-points{list-style:none; margin:0; padding:0; display:grid; gap:10px}
.auth-points li{display:flex; gap:12px; align-items:flex-start}
.auth-points i{
  flex:0 0 auto; width:34px; height:34px; border-radius:10px; display:grid; place-items:center;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.10); color:#93c5fd;
}
.auth-points svg{width:18px; height:18px}
.auth-points strong{display:block; font-size:13.5px; color:#fff; margin-bottom:2px}
.auth-points span{display:block; font-size:12.5px; line-height:1.5; color:#a9b9d6}

/* ---------- Form tarafı ---------- */
.auth-panel{display:flex; flex-direction:column; justify-content:center; padding:44px 48px 26px; min-width:0}
.auth-card{width:100%; max-width:400px; margin:0 auto}
.auth-card-logo{display:none; align-items:center; gap:10px; margin-bottom:22px; font-weight:700; color:var(--a-ink)}
.auth-card-logo .auth-logo{width:38px; height:38px; border-radius:11px; font-size:17px}
.auth-kicker{
  display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px;
  background:#eef4ff; color:var(--a-blue-2); font-size:11.5px; font-weight:700; letter-spacing:.02em;
  max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.auth-kicker::before{content:""; width:6px; height:6px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.18); flex:0 0 auto}
.auth-card h2{margin:14px 0 8px; font-size:28px; font-weight:800; letter-spacing:-.02em; color:var(--a-ink)}
.auth-muted{margin:0 0 22px; font-size:14px; line-height:1.6; color:var(--a-muted)}

.auth-alert{padding:12px 14px; border-radius:14px; margin:0 0 16px; font-size:13.5px; line-height:1.5; font-weight:500}
.auth-alert-danger{background:#fef2f2; border:1px solid #fecaca; color:#b91c1c}
.auth-alert-success{background:#f0fdf4; border:1px solid #bbf7d0; color:#15803d}

.auth-field{margin-bottom:16px}
.auth-label-row{display:flex; justify-content:space-between; align-items:baseline; gap:10px}
.auth-label{display:block; margin:0 0 7px; font-size:13px; font-weight:700; color:var(--a-text)}
.auth-link{font-size:13px; font-weight:600; color:var(--a-blue); text-decoration:none}
.auth-link:hover{text-decoration:underline}
.auth-input{position:relative}
.auth-input-icon{position:absolute; left:14px; top:50%; transform:translateY(-50%); width:19px; height:19px; color:#94a3b8; pointer-events:none; transition:color .15s}
.auth-page .auth-input input{
  width:100%; height:52px; margin:0; padding:0 46px 0 44px;
  border:1.5px solid var(--a-line); border-radius:14px; background:#f8fafc;
  font:inherit; font-size:16px; /* 16px: iPhone'da yakınlaştırma yapmaz */ color:var(--a-ink);
  outline:none; transition:border-color .15s, box-shadow .15s, background .15s; box-shadow:none;
}
.auth-page .auth-input input::placeholder{color:#9aa8bb}
.auth-page .auth-input input:hover{border-color:#cbd5e1}
.auth-page .auth-input input:focus{border-color:var(--a-blue); background:#fff; box-shadow:0 0 0 4px rgba(37,99,235,.12)}
.auth-input:focus-within .auth-input-icon{color:var(--a-blue)}
.auth-eye{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border:0; border-radius:10px; background:transparent; color:#94a3b8;
  display:grid; place-items:center; cursor:pointer; padding:0; box-shadow:none;
}
.auth-eye svg{width:20px; height:20px}
.auth-eye:hover{background:#eef2f7; color:var(--a-text)}
.auth-eye.is-on{color:var(--a-blue)}

.auth-btn{
  width:100%; height:52px; margin-top:6px; border:0; border-radius:14px; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font:inherit; font-size:15.5px; font-weight:700; color:#fff;
  background:linear-gradient(180deg,#3b82f6,#2563eb); box-shadow:0 12px 24px -10px rgba(37,99,235,.65), inset 0 1px 0 rgba(255,255,255,.2);
  transition:transform .12s, box-shadow .15s, filter .15s;
}
.auth-btn svg{width:18px; height:18px; transition:transform .15s}
.auth-btn:hover{filter:brightness(1.05); box-shadow:0 16px 28px -10px rgba(37,99,235,.7)}
.auth-btn:hover svg{transform:translateX(3px)}
.auth-btn:active{transform:translateY(1px)}
.auth-btn[disabled]{cursor:progress; filter:saturate(.7); opacity:.85}
.auth-btn.is-loading svg{display:none}
.auth-btn.is-loading::before{
  content:""; width:16px; height:16px; border-radius:50%;
  border:2px solid rgba(255,255,255,.45); border-top-color:#fff; animation:authspin .7s linear infinite;
}
@keyframes authspin{to{transform:rotate(360deg)}}

.auth-note{margin-top:18px; font-size:12.5px; line-height:1.6; color:var(--a-muted); text-align:center}
.auth-security{margin-top:18px; padding-top:16px; border-top:1px solid var(--a-line); display:grid; grid-template-columns:repeat(3,1fr); gap:8px}
.auth-security-item{padding:10px; border-radius:12px; background:var(--a-soft); min-width:0}
.auth-security-item strong{display:block; font-size:12px; color:var(--a-ink); margin-bottom:3px}
.auth-security-item span{display:block; font-size:11px; line-height:1.45; color:var(--a-muted)}
.auth-foot{margin-top:22px; text-align:center; font-size:11.5px; color:#94a3b8}

/* Tablet */
@media (max-width:900px){
  .auth-shell{grid-template-columns:1fr; max-width:520px}
  .auth-panel{order:1; padding:34px 30px 24px}
  .auth-brand{order:2; padding:28px 30px 30px; gap:20px}
  .auth-brand-top{display:none}
  .auth-brand-main{margin-top:0}
  .auth-brand h1{font-size:22px}
  .auth-card-logo{display:flex}
}
/* Telefon */
@media (max-width:520px){
  body.auth-page{padding:0; align-items:stretch; background:#fff}
  .auth-shell{border-radius:0; box-shadow:none; border:0; max-width:none; min-height:100dvh}
  .auth-panel{padding:calc(26px + env(safe-area-inset-top)) 20px 20px}
  .auth-brand{padding:26px 20px calc(26px + env(safe-area-inset-bottom))}
  .auth-card h2{font-size:24px}
  .auth-security{grid-template-columns:1fr}
  .auth-security-item{display:flex; gap:8px; align-items:baseline}
  .auth-security-item strong{white-space:nowrap; margin:0}
}

/* Tek kartlı sayfalar telefonda tam ekran beyaz */
@media (max-width:520px){ body.auth-page.auth-solo{padding:0; align-items:stretch; background:#fff} }

/* ---------- Tek kartlı sayfalar: SMS doğrulama, şifremi unuttum, kod doğrula, yeni şifre ---------- */
.auth-page .otp-card,
.auth-page .fp-card,
.auth-page .box{
  width:100%; max-width:440px; margin:0 auto; padding:34px 30px 28px;
  border-radius:26px; background:#fff; color:var(--a-ink);
  border:1px solid rgba(15,23,42,.06); backdrop-filter:none;
  box-shadow:0 30px 80px -24px rgba(15,23,42,.28), 0 2px 6px rgba(15,23,42,.05);
}
.auth-page .otp-icon,.auth-page .fp-icon,.auth-page .box .icon{
  width:60px; height:60px; border-radius:18px; margin:0 auto 18px; font-size:26px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#eef4ff,#dbeafe); box-shadow:inset 0 0 0 1px #c7d8fb;
}
.auth-page .otp-card h1,.auth-page .fp-card h1,.auth-page .box h1{
  text-align:center; font-size:26px; font-weight:800; letter-spacing:-.02em; margin:0 0 8px; color:var(--a-ink);
}
.auth-page .otp-sub,.auth-page .fp-sub,.auth-page .box .sub{
  text-align:center; color:var(--a-muted); font-size:14px; line-height:1.65; margin:0 0 22px;
}
.auth-page .otp-phone,.auth-page .box .phone{color:var(--a-blue-2); font-weight:800}
.auth-page .otp-alert,.auth-page .fp-alert,.auth-page .box .alert{padding:12px 14px; border-radius:14px; margin:0 0 14px; font-size:13.5px; line-height:1.5}
.auth-page .otp-danger,.auth-page .fp-danger,.auth-page .box .danger{background:#fef2f2; border:1px solid #fecaca; color:#b91c1c}
.auth-page .otp-success,.auth-page .fp-success,.auth-page .box .success{background:#f0fdf4; border:1px solid #bbf7d0; color:#15803d}
.auth-page .otp-card label,.auth-page .fp-card label,.auth-page .box label{
  display:block; margin:0 0 7px; font-size:13px; font-weight:700; color:var(--a-text);
}
.auth-page .otp-card input:not([type=hidden]),
.auth-page .fp-card input:not([type=hidden]),
.auth-page .box input:not([type=hidden]){
  width:100%; height:52px; margin:0 0 16px; padding:0 16px;
  border:1.5px solid var(--a-line); border-radius:14px; background:#f8fafc;
  font:inherit; font-size:16px; color:var(--a-ink); outline:none; box-shadow:none;
  transition:border-color .15s, box-shadow .15s, background .15s;
}
.auth-page .otp-card input::placeholder,.auth-page .fp-card input::placeholder,.auth-page .box input::placeholder{color:#9aa8bb}
.auth-page .otp-card input:focus,.auth-page .fp-card input:focus,.auth-page .box input:focus{
  border-color:var(--a-blue); background:#fff; box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
/* 6 haneli kod alanları */
.auth-page #otp_code,.auth-page .box input[name="reset_code"]{
  height:64px; text-align:center; font-size:28px; font-weight:800; letter-spacing:.45em; padding-left:.45em;
  font-variant-numeric:tabular-nums;
}
.auth-page .otp-btn,.auth-page .fp-btn,.auth-page .box .btn{
  width:100%; height:52px; border:0; border-radius:14px; cursor:pointer; font:inherit; font-size:15.5px; font-weight:700; color:#fff;
  background:linear-gradient(180deg,#3b82f6,#2563eb); box-shadow:0 12px 24px -10px rgba(37,99,235,.65), inset 0 1px 0 rgba(255,255,255,.2);
}
.auth-page .otp-btn:hover,.auth-page .fp-btn:hover,.auth-page .box .btn:hover{filter:brightness(1.05)}
.auth-page .otp-btn-secondary,.auth-page .box .btn-secondary{
  width:100%; height:48px; margin-top:10px; border-radius:14px; cursor:pointer; font:inherit; font-size:14px; font-weight:600;
  color:var(--a-text); background:#fff; border:1.5px solid var(--a-line); box-shadow:none;
}
.auth-page .otp-btn-secondary:hover:not([disabled]),.auth-page .box .btn-secondary:hover:not([disabled]){border-color:#cbd5e1; background:#f8fafc}
.auth-page .otp-btn-secondary[disabled],.auth-page .box .btn-secondary[disabled]{opacity:.55; cursor:not-allowed}
.auth-page .otp-card small,.auth-page .box small{display:block; margin-top:6px; font-size:11.5px; line-height:1.5; color:var(--a-muted); text-align:center}
.auth-page .otp-back,.auth-page .fp-link,.auth-page .box .back{
  display:block; text-align:center; margin-top:16px; color:var(--a-blue); text-decoration:none; font-size:14px; font-weight:600;
}
.auth-page .otp-back:hover,.auth-page .fp-link:hover,.auth-page .box .back:hover{text-decoration:underline}
.auth-page .otp-bottom{margin-top:14px; text-align:center; font-size:12.5px; color:var(--a-muted); line-height:1.6}
.auth-page .auth-solo-brand{display:flex; align-items:center; justify-content:center; gap:10px; margin:0 0 22px; font-weight:700; font-size:14px; color:var(--a-ink)}
.auth-page .auth-solo-brand .auth-logo{width:34px; height:34px; border-radius:10px; font-size:15px}
@media (max-width:520px){
  .auth-page .otp-card,.auth-page .fp-card,.auth-page .box{
    max-width:none; min-height:100dvh; border-radius:0; border:0; box-shadow:none;
    padding:calc(28px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  }
}
