/* Sushi Dotto — Hesap sayfaları · Tasarım & Geliştirme: Zetuya Software */

:root {
    --bg: #050508;
    --text: #f4f4f5;
}

html, body { overflow-x: hidden; overflow-x: clip; }
.auth-page { color: var(--text); }
.auth-page .auth { gap: 8px; }

.auth-page .back { min-height: 44px; }
.auth-page .brand { min-height: 44px; }

/* ---------- Dotto-san ---------- */
.auth-page .side { gap: 4px; }
.hero { display: grid; justify-items: center; width: min(100%, 320px); }
.auth-page .bubble { margin: 0 0 8px; max-width: min(18rem, 100%); }

.mascot {
    position: relative;
    width: 92px;
    height: 92px;
    perspective: 640px;
    touch-action: manipulation;
}
.mascot::before {
    content: '';
    position: absolute;
    left: -30%;
    right: -30%;
    bottom: -26%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(var(--brand-rgb, 124, 77, 255), 0.38), rgba(var(--brand-rgb, 124, 77, 255), 0.08) 60%, transparent);
    filter: blur(2px);
    pointer-events: none;
}
.mascot-look {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--lx, 0deg)) rotateY(var(--ly, 0deg));
    transition: transform 0.5s var(--ease);
}
.mascot-body {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: dotto-float 5.5s ease-in-out infinite;
}
.mascot-body svg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.mascot-body .layer { color: #b45309; transform: translateZ(calc(var(--z) * -1.6px)); }
.mascot-body .layer:nth-child(-n+3) { color: #92400e; }
.mascot-body .front { transform: translateZ(0.5px); }
.mascot-shadow {
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: -12px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
    animation: dotto-shadow 5.5s ease-in-out infinite;
}
@keyframes dotto-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotateX(8deg) rotateY(-20deg); }
    50% { transform: translate3d(0, -9px, 0) rotateX(-4deg) rotateY(20deg); }
}
@keyframes dotto-shadow { 50% { transform: scaleX(0.78); opacity: 0.55; } }

/* ---------- Kart ---------- */
.auth-page .card {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(24, 24, 30, 0.92), rgba(10, 10, 13, 0.96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 70px rgba(var(--brand-rgb, 124, 77, 255), 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.auth-page .card-head { margin-bottom: 20px; }
.auth-page .card-head h1 { font-weight: 700; overflow-wrap: anywhere; }
.auth-page .card-head p { line-height: 1.55; }
.head-ico {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 16px;
    border: 1px solid rgba(var(--brand-light-rgb, 167, 139, 250), 0.35);
    background: linear-gradient(145deg, rgba(var(--brand-light-rgb, 167, 139, 250), 0.24), rgba(217, 70, 239, 0.12));
    box-shadow: 0 0 28px rgba(var(--brand-rgb, 124, 77, 255), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-size: 24px;
    color: var(--brand-pastel, #d8b4fe);
}

.auth-page .alert span { min-width: 0; overflow-wrap: anywhere; }
.auth-page .field label { color: #d4d4d8; }

.auth-page .submit {
    height: auto;
    min-height: 52px;
    padding: 12px 18px;
    line-height: 1.3;
    text-align: center;
}
.auth-page .submit > span:first-child { min-width: 0; }

.ghost {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    touch-action: manipulation;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.ghost .ico { font-size: 17px; }
@media (hover: hover) { .ghost:hover { color: #fff; border-color: rgba(var(--brand-rgb, 124, 77, 255), 0.45); background: rgba(var(--brand-rgb, 124, 77, 255), 0.08); } }
.ghost .spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.ghost.loading { pointer-events: none; opacity: 0.75; }
.ghost.loading .spin { display: block; }
.ghost.loading .ico { display: none; }

.stack { display: grid; gap: 12px; }

/* Şifre gücü */
.meter { display: flex; align-items: center; gap: 12px; margin-top: 9px; font-size: 12px; font-weight: 500; color: var(--dim); }
.meter-bars { display: grid; flex: 1; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.meter-bars i { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.meter-label { flex-shrink: 0; min-width: 6.5em; text-align: right; transition: color 0.3s ease; }
.meter[data-level="1"] i:nth-child(-n+1) { background: var(--brand-light, #a78bfa); box-shadow: 0 0 8px rgba(var(--brand-light-rgb, 167, 139, 250), 0.5); }
.meter[data-level="2"] i:nth-child(-n+2) { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.45); }
.meter[data-level="3"] i:nth-child(-n+3) { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
.meter[data-level="4"] i { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.45); }
.meter[data-level="1"] .meter-label { color: var(--brand-pastel, #d8b4fe); }
.meter[data-level="2"] .meter-label, .meter[data-level="3"] .meter-label { color: #fcd34d; }
.meter[data-level="4"] .meter-label { color: #6ee7b7; }

.match { display: none; margin-top: 7px; font-size: 12.5px; font-weight: 500; }
.match[data-state] { display: block; }
.match[data-state="bad"] { color: var(--brand-pastel, #d8b4fe); }
.match[data-state="ok"] { color: #6ee7b7; }

/* Bağlantılar ve notlar */
.alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 6px; margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
.alt a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; font-weight: 600; color: var(--brand-pastel, #d8b4fe); transition: color 0.3s ease; }
@media (hover: hover) { .alt a:hover { color: #fff; } }

.note { display: flex; gap: 10px; margin-top: 16px; padding: 11px 13px; border-radius: 14px; border: 1px solid rgba(245, 158, 11, 0.2); background: rgba(245, 158, 11, 0.06); font-size: 12.5px; line-height: 1.5; color: #d4d4d8; }
.note .ico { margin-top: 2px; font-size: 16px; color: var(--amber); }

.mail-chip { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03); font-size: 14px; font-weight: 600; }
.mail-chip .ico { font-size: 18px; color: var(--accent); }
.mail-chip span { min-width: 0; overflow-wrap: anywhere; }

.steps { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.5; color: #d4d4d8; counter-increment: step; }
.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid rgba(var(--brand-light-rgb, 167, 139, 250), 0.35);
    background: rgba(var(--brand-rgb, 124, 77, 255), 0.12);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-pastel, #d8b4fe);
}

/* ---------- Dar ekranlar ---------- */
@media (max-width: 359px) {
    .auth-page .brand { font-size: 16px; gap: 8px; }
    .auth-page .brand img { width: 30px; height: 30px; }
    .auth-page .back { justify-content: center; width: 44px; height: 44px; padding: 0; }
    .auth-page .back span { display: none; }
    .auth-page .card { padding: 22px 16px 20px; }
}
@media (max-height: 640px) and (max-width: 1023px) {
    .auth-page .bubble { display: none; }
    .mascot { width: 72px; height: 72px; }
}

/* ---------- Masaüstü ---------- */
@media (min-width: 1024px) {
    .auth-page .side { justify-items: start; }
    .auth-page .bubble { margin-left: 0; font-size: 14px; }
    .hero { width: min(100%, 360px); }
    .mascot { width: 190px; height: 190px; margin-top: 10px; }
    .mascot-body .layer { transform: translateZ(calc(var(--z) * -3px)); }
    .mascot-shadow { bottom: -22px; height: 16px; }
    .auth-page .pitch { margin-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .mascot-body, .mascot-shadow { animation: none; }
    .mascot-look { transition: none; transform: none; }
}

@supports (-webkit-touch-callout: none) {
    input, select, textarea { font-size: 16px !important; }
}

/* Dotto-san'a dokununca zıplar (hafif modda da: kullanıcı tetikler, tek seferlik) */
.mascot { cursor: pointer; }
.mascot.hop { animation: dotto-hop 0.62s cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes dotto-hop {
    0% { transform: translateY(0) scale(1, 1); }
    18% { transform: translateY(2px) scale(1.08, 0.9); }
    45% { transform: translateY(-26px) scale(0.95, 1.06); }
    70% { transform: translateY(0) scale(1.06, 0.94); }
    100% { transform: translateY(0) scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) { .mascot.hop { animation: none; } }
