/* Portal tasarımı: renkler ve ölçüler --p-* değişkenlerinden gelir (Portal Tasarımı ekranı). */
:root { --p-primary: #0284c7; --p-primary-text: #fff; --p-card: #fff; --p-text: #0f172a; --p-muted: #64748b;
  --p-radius: 18px; --p-width: 400px; --p-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --p-justify: center; --p-logo-h: 56px; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: var(--p-justify);
  font: 16px/1.5 var(--p-font); color: var(--p-text);
  background: linear-gradient(160deg, #e0f2fe, #f8fafc 60%); padding: 16px; }
body.pos-left { padding-left: max(16px, 6vw); } body.pos-right { padding-right: max(16px, 6vw); }
body.custom { display: block; padding: 0; }
@media (max-width: 640px) { body { justify-content: center; } body.pos-left, body.pos-right { padding: 16px; } }
.box { width: 100%; max-width: var(--p-width); background: var(--p-card); border-radius: var(--p-radius); padding: 26px 22px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, .12); color: var(--p-text); }
body.custom .box { margin: 0 auto; }
.logo { display: block; height: var(--p-logo-h); width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 14px; }
h1 { margin: 0 0 6px; font-size: 22px; } h2 { margin: 6px 0; font-size: 19px; text-align: center; }
.muted { color: var(--p-muted); font-size: 14px; margin: 0 0 16px; }
label { display: block; font-size: 13px; color: var(--p-muted); margin: 12px 0 6px; font-weight: 600; }
input[type=tel], input[type=text], input[type=email] { width: 100%; font: inherit; font-size: 18px; padding: 12px; border: 1.5px solid #cbd5e1;
  border-radius: calc(var(--p-radius) * .55); outline: none; background: #fff; color: #0f172a; }
input:focus { border-color: var(--p-primary); }
.phone { display: flex; align-items: stretch; }
.phone span { padding: 12px 10px; background: #f1f5f9; border: 1.5px solid #cbd5e1; border-right: 0; border-radius: calc(var(--p-radius) * .55) 0 0 calc(var(--p-radius) * .55); font-size: 18px; color: #475569; }
.phone input { border-radius: 0 calc(var(--p-radius) * .55) calc(var(--p-radius) * .55) 0; }
.code { letter-spacing: .4em; text-align: center; font-size: 26px !important; }
.channels { display: flex; gap: 8px; margin: 14px 0 4px; }
.channels label { flex: 1; margin: 0; display: flex; gap: 6px; align-items: center; justify-content: center; border: 1.5px solid #cbd5e1; border-radius: calc(var(--p-radius) * .55); padding: 10px; cursor: pointer; font-weight: 500; color: var(--p-text); }
.channels input { display: none; }
.channels label.on { border-color: var(--p-primary); box-shadow: inset 0 0 0 1px var(--p-primary); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--p-text); margin-top: 14px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--p-primary); }
details { font-size: 13px; color: var(--p-muted); margin: 8px 0 4px; }
details p { white-space: pre-wrap; }
button { width: 100%; font: inherit; border: 0; border-radius: calc(var(--p-radius) * .55); padding: 13px; margin-top: 14px; cursor: pointer; }
button.primary { background: var(--p-primary); color: var(--p-primary-text); font-weight: 600; }
button.primary:disabled { opacity: .55; }
button.link { background: none; color: var(--p-primary); padding: 6px; margin-top: 6px; }
button.link:disabled { color: var(--p-muted); }
.err { color: #dc2626; min-height: 1.2em; font-size: 14px; margin: 12px 0 0; }
.ok { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.foot { font-size: 13px; color: var(--p-muted); text-align: center; margin-top: 16px; }
.powered { text-align: center; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(100, 116, 139, .2); }
.powered img { height: 22px; width: auto; opacity: .85; }
