* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

body {
    font-family: 'Vazirmatn', -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07060f;
    overflow-x: hidden;
    position: relative;
    color: #fff;
    padding: 20px 0;
}

/* ═══ Orbs ═══ */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, #7B61FF, transparent 70%);
    top: -120px; right: -120px;
    animation: float1 12s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #00C2FF, transparent 70%);
    bottom: -120px; left: -120px;
    animation: float2 15s ease-in-out infinite;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #FF2E93, transparent 70%);
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: .35;
    animation: float3 18s ease-in-out infinite;
}
@keyframes float1 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(-40px, 40px) scale(1.1); }
}
@keyframes float2 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(40px, -40px) scale(1.15); }
}
@keyframes float3 {
    0%,100% { transform: translate(-50%,-50%) scale(1); }
    50%     { transform: translate(-40%,-60%) scale(1.2); }
}

/* ═══ Container ═══ */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    animation: fadeUp .6s ease;
}
@keyframes fadeUp {
    from { opacity:0; transform: translateY(20px); }
    to   { opacity:1; transform: translateY(0); }
}

/* ═══ Glass Card ═══ */
.glass-card {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    padding: 36px 28px;
    box-shadow:
        0 20px 60px rgba(0,0,0,.5),
        inset 0 1px 0 rgba(255,255,255,.15);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
}

/* ═══ Brand ═══ */
.brand { text-align: center; margin-bottom: 32px; }
.logo-wrap {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    background: rgba(123,97,255,.1);
    border: 1px solid rgba(123,97,255,.3);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(123,97,255,.4);
    animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 40px rgba(123,97,255,.4); }
    50%     { box-shadow: 0 0 60px rgba(123,97,255,.7); }
}
.logo { width: 42px; height: 42px; }

h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff 0%, #b8b0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle {
    font-size: 13px;
    color: rgba(255,255,255,.5);
}

/* ═══ Steps ═══ */
.step { display: none; }
.step.active { display: block; animation: slideIn .35s ease; }
@keyframes slideIn {
    from { opacity:0; transform: translateX(-15px); }
    to   { opacity:1; transform: translateX(0); }
}
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    margin-bottom: 10px;
}
.hint {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(123,97,255,.08);
    border-right: 2px solid #7B61FF;
    border-radius: 6px;
}

/* ═══ Input Group ═══ */
.input-group {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,.3);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 0 16px;
    transition: all .3s;
}
.input-group:focus-within {
    border-color: #7B61FF;
    background: rgba(123,97,255,.08);
    box-shadow: 0 0 0 4px rgba(123,97,255,.15);
}
.prefix {
    font-size: 14px;
    color: rgba(255,255,255,.5);
    padding-left: 14px;
    margin-left: 14px;
    border-left: 1px solid rgba(255,255,255,.15);
    direction: ltr;
    font-weight: 600;
}
.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 16px 0;
    font-family: inherit;
    font-size: 16px;
    color: #fff;
    direction: ltr;
    letter-spacing: 1px;
}
.input-group input::placeholder { color: rgba(255,255,255,.25); letter-spacing: 0; }

/* ═══ OTP ═══ */
.otp-wrap { display: flex; justify-content: center; }
.otp {
    width: 100%;
    padding: 20px;
    background: rgba(0,0,0,.3);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 14px;
    outline: none;
    text-align: center;
    font-size: 28px;
    font-family: inherit;
    font-weight: 700;
    color: #fff;
    letter-spacing: 12px;
    direction: ltr;
    transition: all .3s;
}
.otp:focus {
    border-color: #00C2FF;
    box-shadow: 0 0 0 4px rgba(0,194,255,.15);
    background: rgba(0,194,255,.05);
}
.otp::placeholder { color: rgba(255,255,255,.15); letter-spacing: 8px; }

/* ═══ Buttons ═══ */
.btn-grad {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #7B61FF 0%, #00C2FF 100%);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(123,97,255,.35);
}
.btn-grad::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00C2FF 0%, #7B61FF 100%);
    opacity: 0;
    transition: opacity .3s;
}
.btn-grad span { position: relative; z-index: 1; }
.btn-grad:hover::before { opacity: 1; }
.btn-grad:active { transform: scale(.98); }

.btn-ghost {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    color: rgba(255,255,255,.7);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all .3s;
}
.btn-ghost:hover {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.25);
    color: #fff;
}

/* ═══ Loading ═══ */
.loading {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7,6,15,.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.spinner {
    width: 48px; height: 48px;
    border: 3px solid rgba(123,97,255,.2);
    border-top-color: #7B61FF;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { font-size: 14px; color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════════════════
   ⭐ Gallery — عکس‌های سیاه قلم بعد از لاگین
   ═══════════════════════════════════════════════ */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 10px 0;
}
.gallery.active { animation: fadeUp .8s ease; }

.art-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    overflow: hidden;
    transition: all .4s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
    animation: artFade .6s ease backwards;
}
.art-card:nth-child(1) { animation-delay: .1s; }
.art-card:nth-child(2) { animation-delay: .25s; }
.art-card:nth-child(3) { animation-delay: .4s; }
.art-card:nth-child(4) { animation-delay: .55s; }

@keyframes artFade {
    from { opacity:0; transform: translateY(30px) scale(.95); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}

.art-card:hover {
    border-color: rgba(123,97,255,.4);
    box-shadow: 0 20px 60px rgba(123,97,255,.25);
    transform: translateY(-4px);
}

.art-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #0a0a0a;
}
.art-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
    filter: grayscale(100%) contrast(1.1);
    display: block;
}
.art-card:hover .art-image img {
    transform: scale(1.08);
    filter: grayscale(100%) contrast(1.2) brightness(1.05);
}

@media (max-width: 480px) {
    .glass-card { padding: 28px 20px; border-radius: 24px; }
    h1 { font-size: 22px; }
}