Files
2026-11-22 00:47:25 +00:00

915 lines
27 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ============================================================
NUMEX SOFT ID — Neumorphic 3D Auth
Tasarım sistemi: yumuşak beyaz yüzey, çift yönlü gölge,
içe gömülü alan, kabartmalı buton, buz mavisi vurgu.
============================================================ */
:root {
/* Yüzeyler */
--bg-1: #eef2f8;
--bg-2: #e4eaf3;
--surface: #ebeef5;
--surface-hi: #f7f9fd;
--surface-lo: #d6dde8;
/* Işık / gölge */
--light: rgba(255, 255, 255, 0.95);
--dark: rgba(163, 177, 198, 0.55);
--dark-soft: rgba(163, 177, 198, 0.35);
/* Metin */
--ink: #2b3444;
--ink-2: #566277;
--ink-3: #7d889b;
--accent: #4a86f7;
--accent-soft: #dce8fd;
--accent-deep: #2f6be0;
--danger: #d2555f;
--ok: #2f9e78;
/* Ölçek */
--r-xl: 34px;
--r-lg: 22px;
--r-md: 16px;
--r-sm: 12px;
--shadow-out: 14px 14px 34px var(--dark), -12px -12px 30px var(--light);
--shadow-out-sm: 8px 8px 18px var(--dark-soft), -8px -8px 18px var(--light);
--shadow-in: inset 5px 5px 12px rgba(163, 177, 198, 0.55), inset -5px -5px 12px rgba(255, 255, 255, 0.92);
--shadow-in-sm: inset 3px 3px 7px rgba(163, 177, 198, 0.5), inset -3px -3px 7px rgba(255, 255, 255, 0.9);
--ease: cubic-bezier(0.22, 0.9, 0.25, 1);
--ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
min-height: 100dvh;
font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
color: var(--ink);
background:
radial-gradient(1200px 700px at 78% 8%, #f6f9ff 0%, transparent 60%),
radial-gradient(900px 650px at 12% 92%, #dfe8f6 0%, transparent 62%),
linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 55%, #dfe6f1 100%);
background-attachment: fixed;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding: clamp(14px, 3vw, 34px) clamp(12px, 4vw, 30px) 22px;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
.sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* ============================================================
1. ARKA PLAN SAHNESİ — kabartmalı geometrik şekiller
============================================================ */
.scene {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
}
.bg-shapes { position: absolute; inset: 0; }
.shape {
position: absolute;
will-change: transform;
transition: transform 900ms var(--ease);
transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
}
.shape::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(145deg, rgba(255,255,255,.55), rgba(210,220,235,.15));
opacity: .55;
}
.shape--circle { border-radius: 50%; }
.shape--square { border-radius: 26px; }
.shape--pill { border-radius: 999px; }
.shape--ring {
border-radius: 50%;
background: transparent !important;
box-shadow: 16px 16px 34px var(--dark-soft), -14px -14px 30px var(--light), var(--shadow-in-sm);
}
.shape {
background: linear-gradient(150deg, #f3f6fb, #dde5f0);
box-shadow: 18px 18px 40px var(--dark), -16px -16px 36px var(--light);
}
.s1 { width: 190px; height: 190px; top: 6%; left: 4%; }
.s2 { width: 128px; height: 128px; top: 62%; left: 8%; transform: rotate(-14deg); border-radius: 30px; }
.s3 { width: 74px; height: 210px; top: 16%; right: 6%; }
.s4 { width: 148px; height: 148px; bottom: 8%; right: 9%; }
.s5 { width: 58px; height: 58px; top: 40%; left: 17%; }
.s6 { width: 96px; height: 96px; bottom: 10%; left: 2%; border-radius: 24px; }
.s7 { width: 52px; height: 148px; top: 8%; left: 34%; opacity: .8; }
.s8 { width: 210px; height: 210px; top: 44%; right: 22%; opacity: .5; }
.glow {
position: absolute;
width: 620px; height: 620px;
left: 0; top: 0;
margin: -310px 0 0 -310px;
border-radius: 50%;
background: radial-gradient(circle, rgba(120, 170, 255, 0.16), rgba(120, 170, 255, 0) 62%);
transform: translate3d(50vw, 40vh, 0);
transition: transform 300ms var(--ease-soft);
will-change: transform;
}
/* ============================================================
2. MARKA
============================================================ */
.brand {
position: relative;
z-index: 3;
display: flex;
align-items: center;
gap: 10px;
margin-bottom: clamp(10px, 2.2vw, 26px);
user-select: none;
}
.brand__mark {
display: grid; place-items: center;
width: 38px; height: 38px;
border-radius: 12px;
background: linear-gradient(145deg, #fbfcff, #dde5f1);
box-shadow: var(--shadow-out-sm);
color: var(--accent);
}
.brand__text {
font-size: 15px;
letter-spacing: .04em;
color: var(--ink-2);
font-weight: 500;
}
.brand__text b { color: var(--ink); font-weight: 800; letter-spacing: 0; }
/* ============================================================
3. SAHNE & KART YERLEŞİMİ
============================================================ */
.stage {
position: relative;
z-index: 2;
width: 100%;
max-width: 470px;
margin: auto;
perspective: 1400px;
display: flex;
flex-direction: column;
align-items: center;
}
/* --- 3D KİLİT --- */
.lock-wrap {
position: relative;
width: 168px;
height: 168px;
margin-bottom: -4px;
z-index: 3;
transform-style: preserve-3d;
transition: transform 700ms var(--ease), opacity 500ms var(--ease);
}
.lock {
position: absolute;
inset: 0;
transform-style: preserve-3d;
animation: lockFloat 6.5s ease-in-out infinite;
}
.lock__stage {
position: absolute;
inset: 0;
transform-style: preserve-3d;
transform: rotateX(var(--lx, 0deg)) rotateY(var(--ly, 0deg)) rotateZ(var(--lz, 0deg));
transition: transform 220ms var(--ease-soft);
}
.lock__body {
position: absolute;
left: 50%; bottom: 12px;
width: 98px; height: 78px;
margin-left: -49px;
transform-style: preserve-3d;
}
.lock__face {
position: absolute; inset: 0;
border-radius: 18px;
background: linear-gradient(155deg, #ffffff 0%, #e7edf6 48%, #cfd9e8 100%);
box-shadow:
inset 0 2px 0 rgba(255,255,255,.95),
inset 0 -3px 8px rgba(163,177,198,.45),
0 18px 26px -12px rgba(120,137,166,.55),
0 4px 10px rgba(120,137,166,.22);
overflow: hidden;
}
.lock__shine {
position: absolute;
inset: -30% -60% auto -60%;
height: 120%;
background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.85) 50%, transparent 62%);
transform: translateX(-40%) rotate(6deg);
opacity: .75;
}
.lock__keyhole {
position: absolute;
left: 50%; top: 50%;
width: 24px; height: 34px;
margin: -19px 0 0 -12px;
border-radius: 10px;
background: linear-gradient(160deg, #cdd7e6, #aebacd);
box-shadow: var(--shadow-in-sm), 0 1px 0 rgba(255,255,255,.8);
}
.lock__keyhole i {
position: absolute;
left: 50%; top: 7px;
width: 10px; height: 10px;
margin-left: -5px;
border-radius: 50%;
background: #9dabc0;
box-shadow: inset 1px 1px 2px rgba(90,105,128,.6);
}
.lock__keyhole i::after {
content: "";
position: absolute;
left: 50%; top: 9px;
width: 4px; height: 11px;
margin-left: -2px;
background: #9dabc0;
border-radius: 2px;
}
.lock__edge--r {
position: absolute;
right: -11px; top: 6px;
width: 12px; height: calc(100% - 12px);
border-radius: 0 9px 9px 0;
background: linear-gradient(90deg, #c2cddd, #9fadc2);
transform: rotateY(28deg);
transform-origin: left center;
opacity: .9;
}
.lock__edge--b {
position: absolute;
left: 7px; bottom: -10px;
width: calc(100% - 14px); height: 12px;
border-radius: 0 0 9px 9px;
background: linear-gradient(180deg, #b6c2d4, #93a2ba);
transform: rotateX(-32deg);
transform-origin: top center;
opacity: .9;
}
.lock__shackle {
position: absolute;
left: 50%;
bottom: 64px;
width: 56px; height: 56px;
margin-left: -28px;
transform-style: preserve-3d;
transform-origin: 50% 100%;
transition: transform 620ms var(--ease);
}
.lock__shackleArm {
position: absolute;
inset: 0;
border-radius: 24px 24px 4px 4px;
border: 10px solid transparent;
border-top-color: #e3e9f2;
border-left-color: #d5deea;
border-right-color: #b9c5d7;
background:
linear-gradient(#edf2f9, #dbe3ee) padding-box;
box-shadow: inset 0 3px 6px rgba(255,255,255,.9), 0 6px 12px -6px rgba(120,137,166,.6);
-webkit-mask: radial-gradient(circle at 50% 62%, transparent 0 18px, #000 18.5px);
mask: radial-gradient(circle at 50% 62%, transparent 0 18px, #000 18.5px);
}
.lock__shadow {
position: absolute;
left: 50%; bottom: 0;
width: 108px; height: 18px;
margin-left: -54px;
border-radius: 50%;
background: radial-gradient(ellipse at center, rgba(122,139,166,.42), rgba(122,139,166,0) 70%);
filter: blur(2px);
animation: shadowPulse 6.5s ease-in-out infinite;
}
/* Kilit durumları */
.lock[data-lock="open"] .lock__shackle {
transform: rotateY(0) translateY(-22px) rotateZ(-32deg);
}
.lock[data-lock="open"] .lock__keyhole { background: linear-gradient(160deg, #d7ece4, #b6ddd0); }
.lock[data-lock="open"] .lock__keyhole i,
.lock[data-lock="open"] .lock__keyhole i::after { background: var(--ok); }
@keyframes lockFloat {
0%, 100% { transform: translateY(0) rotateZ(0deg); }
50% { transform: translateY(-9px) rotateZ(-1.2deg); }
}
@keyframes shadowPulse {
0%, 100% { transform: scale(1); opacity: .9; }
50% { transform: scale(.82); opacity: .55; }
}
/* Kilit açılış anı (öne gelir, büyür) */
.lock-wrap.is-unlocking { animation: lockForward 1.05s var(--ease) forwards; }
@keyframes lockForward {
0% { transform: translateY(0) scale(1); }
35% { transform: translateY(-26px) scale(1.28); }
75% { transform: translateY(-14px) scale(1.16); }
100% { transform: translateY(0) scale(1); }
}
/* ============================================================
4. KART
============================================================ */
.card {
position: relative;
width: 100%;
border-radius: var(--r-xl);
background: linear-gradient(155deg, #f8fafd 0%, #e9eef6 46%, #dee6f1 100%);
box-shadow:
22px 22px 48px var(--dark),
-18px -18px 42px var(--light),
inset 0 1px 0 rgba(255,255,255,.9),
inset 0 -2px 4px rgba(163,177,198,.28);
transform-style: preserve-3d;
transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
transition: transform 380ms var(--ease), opacity 420ms var(--ease), filter 420ms var(--ease), box-shadow 380ms var(--ease);
will-change: transform;
z-index: 2;
}
.card::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.72), transparent 70%);
opacity: 0;
transition: opacity 400ms var(--ease);
pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card__inner {
position: relative;
padding: clamp(24px, 5vw, 38px) clamp(20px, 5vw, 34px) clamp(22px, 4vw, 30px);
padding-top: clamp(30px, 6vw, 44px);
}
.card__inner--center { text-align: center; }
.card__head { text-align: center; }
.eyebrow {
margin: 0 0 8px;
font-size: 11px;
font-weight: 800;
letter-spacing: .16em;
text-transform: uppercase;
color: var(--accent);
}
h1 {
margin: 0;
font-size: clamp(23px, 5.2vw, 29px);
font-weight: 800;
letter-spacing: -0.02em;
color: var(--ink);
text-shadow: 0 1px 0 rgba(255,255,255,.85);
}
.sub {
margin: 9px 0 0;
font-size: 13.5px;
line-height: 1.55;
color: var(--ink-3);
font-weight: 500;
}
.sub b { color: var(--ink-2); font-weight: 700; }
/* Kart geçiş durumları */
.card[hidden] { display: none; }
.card.is-entering { animation: cardIn 620ms var(--ease) both; }
.card.is-leaving { animation: cardOut 480ms var(--ease) both; }
@keyframes cardIn {
from { opacity: 0; transform: perspective(1400px) translateY(18px) scale(.94); filter: blur(6px); }
to { opacity: 1; transform: perspective(1400px) translateY(0) scale(1); filter: blur(0); }
}
@keyframes cardOut {
from { opacity: 1; transform: perspective(1400px) translateY(0) scale(1); filter: blur(0); }
to { opacity: 0; transform: perspective(1400px) translateY(-14px) scale(.9); filter: blur(7px); }
}
body.is-locked-scroll { overflow: hidden; }
/* ============================================================
5. FORMLAR / GİRİŞLER
============================================================ */
.form {
margin-top: 22px;
display: flex;
flex-direction: column;
gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
font-size: 12px;
font-weight: 700;
color: var(--ink-2);
letter-spacing: .01em;
padding-left: 6px;
transition: color 200ms var(--ease);
}
.field.is-focus .field__label { color: var(--accent-deep); }
.field__shell {
position: relative;
display: flex;
align-items: center;
gap: 10px;
padding: 0 14px;
height: 54px;
border-radius: var(--r-md);
background: linear-gradient(150deg, #e2e8f2, #eef2f8);
box-shadow: var(--shadow-in);
transition: box-shadow 320ms var(--ease), background 320ms var(--ease);
overflow: hidden;
}
.field__shell::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: radial-gradient(220px 80px at var(--fx, 50%) 50%, rgba(74,134,247,.20), transparent 70%);
opacity: 0;
transition: opacity 340ms var(--ease);
pointer-events: none;
}
.field.is-focus .field__shell {
box-shadow: var(--shadow-in), 0 0 0 2px rgba(74,134,247,.28);
background: linear-gradient(150deg, #dfe7f4, #edf2fa);
}
.field.is-focus .field__shell::after { opacity: 1; }
.field.has-error .field__shell { box-shadow: var(--shadow-in), 0 0 0 2px rgba(210,85,95,.35); }
.field__icon { color: var(--ink-3); display: grid; place-items: center; transition: color 220ms var(--ease); }
.field.is-focus .field__icon { color: var(--accent); }
.field__input {
flex: 1;
min-width: 0;
border: 0;
outline: 0;
background: transparent;
font: inherit;
font-size: 15.5px;
font-weight: 600;
color: var(--ink);
letter-spacing: .01em;
padding: 4px 0;
}
.field__input::placeholder { color: #a6b1c2; font-weight: 500; }
.field__input:-webkit-autofill {
-webkit-text-fill-color: var(--ink);
transition: background-color 9999s ease-in-out 0s;
}
.field__peek {
display: grid; place-items: center;
width: 34px; height: 34px;
flex: 0 0 auto;
border: 0;
border-radius: 10px;
background: linear-gradient(145deg, #f4f7fc, #dde4ee);
color: var(--ink-3);
box-shadow: var(--shadow-out-sm);
cursor: pointer;
transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), color 180ms var(--ease);
}
.field__peek:hover { transform: translateY(-1px); color: var(--accent); }
.field__peek:active { box-shadow: var(--shadow-in-sm); transform: translateY(0) scale(.97); }
.field__peek .eye-off { display: none; }
.field__peek[aria-pressed="true"] .eye-off { display: block; }
.field__peek[aria-pressed="true"] .eye-open { display: none; }
.field__error {
margin: 0;
min-height: 15px;
font-size: 12px;
font-weight: 700;
color: var(--danger);
padding-left: 6px;
opacity: 0;
transform: translateY(-3px);
transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.field__error.is-shown { opacity: 1; transform: translateY(0); }
.field__error--center { text-align: center; padding: 0; min-height: 18px; }
/* Satır: beni hatırla + şifremi unuttum */
.row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: -2px;
}
.check {
display: inline-flex;
align-items: center;
gap: 9px;
cursor: pointer;
user-select: none;
font-size: 13px;
font-weight: 600;
color: var(--ink-2);
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
width: 24px; height: 24px;
display: grid; place-items: center;
border-radius: 8px;
background: linear-gradient(150deg, #e6ecf5, #f4f7fb);
box-shadow: var(--shadow-in-sm);
color: transparent;
transition: color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.check input:checked + .check__box {
color: var(--accent);
box-shadow: var(--shadow-out-sm);
background: linear-gradient(150deg, #f6f9fe, #e2eaf7);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.link {
color: var(--accent-deep);
font-size: 13px;
font-weight: 700;
text-decoration: none;
border-radius: 6px;
transition: color 180ms var(--ease), opacity 180ms var(--ease);
}
.link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.link--btn { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.link--muted { color: var(--ink-3); font-weight: 600; }
/* ============================================================
6. BUTONLAR
============================================================ */
.btn {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
height: 56px;
width: 100%;
border: 0;
border-radius: var(--r-md);
font: inherit;
font-size: 15.5px;
font-weight: 800;
letter-spacing: .01em;
cursor: pointer;
overflow: hidden;
transition: transform 180ms var(--ease), box-shadow 260ms var(--ease), color 200ms var(--ease);
-webkit-tap-highlight-color: transparent;
}
.btn--primary {
color: #fff;
background: linear-gradient(150deg, #5f9bff 0%, #4a86f7 46%, #3a72e4 100%);
box-shadow:
10px 12px 26px rgba(74, 134, 247, .42),
-8px -8px 20px rgba(255, 255, 255, .95),
inset 0 1px 0 rgba(255,255,255,.55),
inset 0 -3px 8px rgba(24, 63, 148, .32);
text-shadow: 0 1px 2px rgba(24, 63, 148, .35);
}
.btn--primary::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.42) 50%, transparent 65%);
transform: translateX(-120%);
transition: transform 700ms var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 12px 16px 32px rgba(74,134,247,.46), -8px -8px 20px rgba(255,255,255,.95), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 8px rgba(24,63,148,.32); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active,
.btn--primary.is-pressed {
transform: translateY(2px) scale(.985);
box-shadow:
inset 5px 5px 14px rgba(24, 63, 148, .45),
inset -4px -4px 12px rgba(120, 170, 255, .55),
0 2px 6px rgba(74,134,247,.25);
}
.btn--primary:focus-visible { outline: 3px solid rgba(74,134,247,.45); outline-offset: 3px; }
.btn[disabled] { cursor: wait; opacity: .92; }
.btn--ghost {
margin-top: 18px;
height: 50px;
color: var(--ink-2);
background: linear-gradient(150deg, #f6f9fd, #e4ebf5);
box-shadow: var(--shadow-out-sm), inset 0 1px 0 rgba(255,255,255,.9);
}
.btn--ghost:hover { transform: translateY(-1px); color: var(--ink); }
.btn--ghost:active { transform: translateY(1px); box-shadow: var(--shadow-in-sm); }
.btn__spinner {
width: 17px; height: 17px;
border-radius: 50%;
border: 2.4px solid rgba(255,255,255,.4);
border-top-color: #fff;
display: none;
animation: spin 720ms linear infinite;
}
.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading .btn__label { opacity: .82; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note {
margin: 2px 0 0;
min-height: 16px;
text-align: center;
font-size: 12.5px;
font-weight: 700;
color: var(--ink-3);
transition: color 200ms var(--ease);
}
.form__note.is-error { color: var(--danger); }
.form__note.is-ok { color: var(--ok); }
.card__foot {
margin: 18px 0 0;
text-align: center;
font-size: 13px;
font-weight: 600;
color: var(--ink-3);
}
/* ============================================================
7. DEMO BİLGİ KUTUSU
============================================================ */
.demo {
margin-top: 20px;
padding: 14px 16px;
border-radius: var(--r-md);
background: linear-gradient(150deg, #e5ebf4, #f0f4fa);
box-shadow: var(--shadow-in-sm);
display: flex;
flex-direction: column;
gap: 6px;
}
.demo--compact { margin-top: 16px; }
.demo__row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
font-size: 12.5px;
}
.demo__k { color: var(--ink-3); font-weight: 700; }
.demo__v {
font-weight: 800;
color: var(--ink-2);
letter-spacing: .02em;
font-family: "Consolas", ui-monospace, monospace;
font-size: 12.5px;
}
button.demo__v {
border: 0;
padding: 4px 9px;
border-radius: 8px;
background: linear-gradient(150deg, #f7fafe, #e1e8f2);
box-shadow: var(--shadow-out-sm);
cursor: pointer;
transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease);
}
button.demo__v:hover { color: var(--accent-deep); transform: translateY(-1px); }
button.demo__v:active { transform: translateY(1px); box-shadow: var(--shadow-in-sm); }
.demo__v--static { color: var(--accent-deep); }
.demo__warn {
margin: 6px 0 0;
font-size: 11px;
line-height: 1.5;
color: var(--ink-3);
font-weight: 500;
border-top: 1px solid rgba(163,177,198,.35);
padding-top: 8px;
}
.demo__warn b { color: var(--ink-2); }
/* ============================================================
8. OTP KUTULARI
============================================================ */
.otp {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: clamp(6px, 1.6vw, 11px);
margin: 4px 0 0;
padding: 0;
border: 0;
}
.otp__cell {
width: 100%;
aspect-ratio: 1 / 1.12;
min-height: 52px;
border: 0;
border-radius: var(--r-md);
text-align: center;
font: inherit;
font-size: clamp(19px, 5.2vw, 24px);
font-weight: 800;
color: var(--ink);
background: linear-gradient(150deg, #e1e8f2, #eef2f8);
box-shadow: var(--shadow-in);
outline: none;
caret-color: var(--accent);
transition: box-shadow 260ms var(--ease), transform 200ms var(--ease), background 260ms var(--ease);
-webkit-appearance: none;
}
.otp__cell::selection { background: var(--accent-soft); }
.otp__cell.is-filled {
background: linear-gradient(150deg, #eaf1fb, #f6f9fe);
box-shadow: var(--shadow-in-sm), 0 6px 14px -10px rgba(120,137,166,.8);
}
.otp__cell.is-active {
box-shadow: var(--shadow-in), 0 0 0 2px rgba(74,134,247,.4);
background: linear-gradient(150deg, #dfe8f6, #eef4fc);
}
.otp.is-error .otp__cell { box-shadow: var(--shadow-in), 0 0 0 2px rgba(210,85,95,.42); }
.otp.is-shake { animation: shake 480ms var(--ease); }
@keyframes shake {
0%, 100% { transform: translateX(0); }
15% { transform: translateX(-9px); }
32% { transform: translateX(8px); }
50% { transform: translateX(-6px); }
68% { transform: translateX(4px); }
85% { transform: translateX(-2px); }
}
.otp.is-ok .otp__cell { box-shadow: var(--shadow-in-sm), 0 0 0 2px rgba(47,158,120,.45); }
.resend {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 6px;
font-size: 13px;
font-weight: 600;
color: var(--ink-3);
margin-top: 2px;
}
.resend__timer { color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 700; }
/* ============================================================
9. BAŞARI EKRANI
============================================================ */
.card--success { position: relative; overflow: hidden; }
.badge {
width: 68px; height: 68px;
margin: 0 auto 16px;
display: grid; place-items: center;
border-radius: 22px;
color: var(--ok);
background: linear-gradient(150deg, #f4fbf8, #dbeee7);
box-shadow: var(--shadow-out-sm), inset 0 1px 0 rgba(255,255,255,.9);
animation: badgeIn 620ms var(--ease) both;
}
@keyframes badgeIn {
from { transform: scale(.6) rotate(-12deg); opacity: 0; }
to { transform: scale(1) rotate(0); opacity: 1; }
}
.session {
margin: 20px 0 4px;
padding: 14px 16px;
border-radius: var(--r-md);
background: linear-gradient(150deg, #e4ebf4, #eff3f9);
box-shadow: var(--shadow-in-sm);
display: flex;
flex-direction: column;
gap: 9px;
text-align: left;
}
.session__row {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12.5px;
color: var(--ink-3);
font-weight: 600;
}
.session__row b { color: var(--ink-2); font-weight: 800; font-family: "Consolas", ui-monospace, monospace; font-size: 12px; }
.session__row b.ok { color: var(--ok); font-family: inherit; font-size: 13px; }
/* Başarı ışık dalgası */
.ripple {
position: absolute;
left: 50%; top: 50%;
width: 40px; height: 40px;
margin: -20px 0 0 -20px;
border-radius: 50%;
background: radial-gradient(circle, rgba(120, 220, 180, .55), rgba(120,220,180,0) 70%);
pointer-events: none;
animation: rippleOut 1200ms var(--ease) forwards;
}
@keyframes rippleOut {
from { transform: scale(.3); opacity: .95; }
to { transform: scale(14); opacity: 0; }
}
/* ============================================================
10. ALT BİLGİ
============================================================ */
.legal {
position: relative;
z-index: 2;
margin: 22px 0 0;
text-align: center;
font-size: 11px;
color: var(--ink-3);
font-weight: 600;
opacity: .85;
}
.legal p { margin: 0; }
/* ============================================================
11. MOBİL
============================================================ */
@media (max-width: 640px) {
body { padding: 14px 14px max(18px, env(safe-area-inset-bottom)); }
.stage { max-width: 100%; }
.lock-wrap { width: 136px; height: 136px; margin-bottom: 0; }
.lock__body { width: 82px; height: 66px; margin-left: -41px; bottom: 6px; }
.lock__shackle { width: 48px; height: 48px; margin-left: -24px; bottom: 60px; }
.lock__keyhole { width: 20px; height: 28px; margin: -16px 0 0 -10px; }
.s7 { display: none; }
.card { border-radius: 28px; }
.otp { gap: 6px; }
.otp__cell { min-height: 48px; font-size: 20px; border-radius: 13px; }
.s1 { width: 130px; height: 130px; }
.s2 { width: 88px; height: 88px; }
.s4 { width: 100px; height: 100px; }
.s8 { display: none; }
.row { flex-wrap: wrap; }
}
/* Kısa ekran / klavye açık — kart tek ekrana sığsın */
@media (max-height: 820px) and (min-width: 641px) {
.brand { display: none; }
.stage { margin-top: 2px; }
.card__inner { padding: 20px 30px 14px; }
.form { margin-top: 12px; gap: 9px; }
.field__label { font-size: 11.5px; }
.field__shell { height: 46px; }
.btn { height: 48px; }
.card__foot { margin-top: 12px; }
.demo { margin-top: 10px; padding: 8px 14px; gap: 4px; }
.demo__warn { font-size: 10px; padding-top: 5px; margin-top: 2px; line-height: 1.4; }
.form__note { min-height: 12px; }
.field__error { min-height: 13px; font-size: 11px; }
h1 { font-size: 25px; }
.sub { margin-top: 6px; }
.lock-wrap { width: 122px; height: 122px; margin-bottom: -6px; }
.lock__body { width: 76px; height: 60px; margin-left: -38px; bottom: 8px; }
.lock__shackle { width: 44px; height: 44px; margin-left: -22px; bottom: 60px; }
.lock__keyhole { width: 20px; height: 28px; margin: -16px 0 0 -10px; }
.legal { display: none; }
}
@media (max-height: 640px) {
.brand { display: none; }
.lock-wrap { display: none; }
.stage { margin-top: 6px; }
}
/* ============================================================
12. HAREKET AZALTMA
============================================================ */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
scroll-behavior: auto !important;
}
.card { transform: none !important; }
.shape { transform: none !important; }
.lock__stage { transform: none !important; }
}