/* ============================================================
   login.css – PIN Ekranı Stilleri
   ============================================================ */

/* ── Body ──────────────────────────────────────────────────── */
.pin-body {
    background: #f0f0f0;
}

/* ── Phone shell override ───────────────────────────────────── */
.pin-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    position: relative;
}

/* ── NAV BAR ────────────────────────────────────────────────── */
.pin-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 10px;
    background: #fff;
}

.pin-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 50%;
    transition: background .15s;
}
.pin-back:hover { background: #f5f5f5; }
.pin-back svg { width: 22px; height: 22px; }

.pin-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -.2px;
}

.pin-help {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    border-radius: 50%;
    transition: background .15s;
}
.pin-help:hover { background: #f5f5f5; }
.pin-help svg { width: 22px; height: 22px; }

/* ── PIN CONTENT ────────────────────────────────────────────── */
.pin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 28px 20px;
    background: #fff;
    gap: 0;
}

/* ── DOTS ───────────────────────────────────────────────────── */
.pin-dots-wrap {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
    align-items: center;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #d1d5db;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, border-color 0.25s ease;
}

.pin-dot.filled {
    background: #E30613;
    border-color: #E30613;
    animation: dotPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.pin-dot.error {
    background: #dc2626;
    border-color: #dc2626;
}

.pin-dot.success {
    background: #10b981;
    border-color: #10b981;
    animation: successWave 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.pin-dots-wrap.shake {
    animation: dotsShakeRow 0.45s ease-in-out;
}

@keyframes dotPop {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.15); opacity: 1; }
}

@keyframes successWave {
    0% { transform: scale(1.15); }
    50% { transform: scale(1.45); }
    100% { transform: scale(1.15); }
}

@keyframes dotsShakeRow {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-12px); }
    30% { transform: translateX(10px); }
    45% { transform: translateX(-8px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
    90% { transform: translateX(2px); }
}

/* ── ERROR MSG ──────────────────────────────────────────────── */
.pin-error-msg {
    color: #E30613;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    animation: fadeUp .3s ease;
}

/* ── FORGOT LINK ────────────────────────────────────────────── */
.pin-forgot {
    color: #E30613;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -.1px;
    transition: opacity .2s;
}
.pin-forgot:hover { opacity: .7; }

/* ── HIDDEN INPUT ───────────────────────────────────────────── */
.pin-hidden-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
    top: 50%;
    left: 50%;
}

/* ── KEYBOARD DONE BAR ──────────────────────────────────────── */
.pin-keyboard-bar {
    display: none; /* shown on mobile via JS media check */
    background: #d1d5db;
    border-top: 1px solid #b0b5be;
    padding: 8px 14px;
    justify-content: flex-end;
}
.pin-done-btn {
    background: none;
    border: none;
    color: #E30613;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* ── NUMPAD ─────────────────────────────────────────────────── */
.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-top: 1px solid #f2f2f7;
    flex-shrink: 0;
    padding: 12px 0 24px;
}

.num-key {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    background: #fff;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #1c1c1e;
    cursor: pointer;
    line-height: 1.15;
    min-height: 68px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1);
}

.num-key::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    transition: background 0.15s ease, transform 0.12s cubic-bezier(0.25, 1, 0.5, 1);
}

.num-key.pressed {
    transform: scale(0.94);
}

.num-key.pressed::before {
    background: rgba(0, 0, 0, 0.06);
    transform: translate(-50%, -50%) scale(1);
}

.num-key span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #8e8e93;
    margin-top: 2px;
    z-index: 2;
}

.num-key.num-empty {
    background: #fff;
    cursor: default;
}

.num-key.num-empty:active,
.num-key.num-empty.pressed {
    background: #fff;
    transform: none;
}

.num-key.num-empty::before {
    display: none;
}

.num-key.num-del {
    background: #fff;
}

.num-key.num-del svg {
    width: 22px;
    height: 22px;
    stroke: #1c1c1e;
    stroke-width: 1.8;
    z-index: 2;
}

/* ── BOTTOM GIRIŞ BUTTON ────────────────────────────────────── */
.pin-bottom {
    padding: 14px 20px 24px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.btn-giris {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 17px;
    background: #f4a7ad; /* pastel when inactive */
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: default;
    transition: background .3s ease, box-shadow .3s ease, transform .15s;
    letter-spacing: .3px;
    text-align: center;
}
.btn-giris.active {
    background: #E30613;
    box-shadow: 0 6px 20px rgba(227,6,19,.4);
    cursor: pointer;
}
.btn-giris.active:hover { background: #c20511; transform: translateY(-1px); }
.btn-giris.active:active { transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
/* Pin shell is fluid and full-screen on all viewports. */

@keyframes btnPulse {
    from { transform: scale(1); box-shadow: 0 6px 20px rgba(227,6,19,.4); }
    to { transform: scale(1.02); box-shadow: 0 10px 25px rgba(227,6,19,.6); }
}
