/* register.page.css — استایل‌های اختصاصی صفحهٔ register (از <style> داخل قالب منتقل شد؛ در همان نقطهٔ قبلی لینک می‌شود تا ترتیب cascade عوض نشود) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Vazirmatn', sans-serif;
    background: #0a0e14;
    color: #e8e6e3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(ellipse at center, rgba(168,85,247,0.08) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}
.particles-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particles-bg span {
    position: absolute;
    display: block;
    width: 3px; height: 3px;
    background: #a855f7;
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity:0; }
    10% { opacity:0.7; }
    90% { opacity:0.1; }
    100% { transform: translateY(-10vh) scale(1.4); opacity:0; }
}
.auth-container {
    background: #161c26;
    border-radius: 24px;
    padding: 40px 35px;
    max-width: 440px;
    width: 92%;
    border: 1px solid rgba(168,85,247,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity:0; transform:scale(0.95) translateY(20px); }
    to { opacity:1; transform:scale(1) translateY(0); }
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.logo-icon {
    width: 64px;
    height: 64px;
    background: rgba(168,85,247,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 2rem;
    color: #a855f7;
    border: 2px solid rgba(168,85,247,0.2);
}
.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.auth-header p {
    color: #b0b8c1;
    font-size: 0.9rem;
    line-height: 1.6;
}
.bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,185,129,0.15);
    color: #10b981;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    border: 1px solid rgba(16,185,129,0.2);
}
.bonus-badge i { font-size: 1rem; }
.debug-otp {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 18px;
    text-align: center;
    color: #f59e0b;
    font-size: 0.85rem;
}
.debug-otp strong {
    font-size: 1.1rem;
    font-family: monospace;
    background: rgba(245,158,11,0.1);
    padding: 2px 10px;
    border-radius: 6px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b0b8c1;
    margin-bottom: 5px;
}
.form-group label .required {
    color: #ef4444;
    font-weight: 700;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #0d1117;
    border: 1.5px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.form-control.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.form-control::placeholder {
    color: #6b7280;
}
.form-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
}
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124,58,237,0.3);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.btn-primary i { font-size: 1rem; }
.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 4px;
    direction: ltr;
}
.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    background: #0d1117;
    border: 1.5px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    color: #fff;
    transition: all 0.3s ease;
}
.otp-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.otp-timer {
    text-align: center;
    font-size: 0.85rem;
    color: #b0b8c1;
    margin: 8px 0 16px;
}
.otp-timer #timer {
    font-weight: 700;
    color: #22d3ee;
    font-family: monospace;
    font-size: 1rem;
}
.auth-links {
    margin-top: 20px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.auth-links p {
    color: #6b7280;
    font-size: 0.85rem;
}
.auth-links a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.auth-links a:hover {
    color: #c084fc;
}
.auth-links .btn-resend {
    display: inline;
    padding: 0;
    background: none;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #22d3ee;
    cursor: pointer;
    transition: color 0.3s ease;
}
.auth-links .btn-resend:hover {
    color: #67e8f9;
}
.success-message {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 14px;
    padding: 8px 14px;
    margin-top: 8px;
    color: #10b981;
    font-size: 0.85rem;
    text-align: center;
}
.error-message {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 14px;
    padding: 8px 14px;
    margin-top: 8px;
    color: #ef4444;
    font-size: 0.85rem;
    text-align: center;
}
.cooldown-message {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 14px;
    padding: 8px 14px;
    margin-top: 8px;
    color: #f59e0b;
    font-size: 0.85rem;
    text-align: center;
}
@media (max-width: 480px) {
    .auth-container { padding: 28px 20px; width: 95%; }
    .auth-header h2 { font-size: 1.25rem; }
    .otp-input { width: 40px; height: 50px; font-size: 1.25rem; }
    .otp-input-container { gap: 6px; }
    .logo-icon { width: 54px; height: 54px; font-size: 1.6rem; }
    .btn-primary { padding: 12px; font-size: 0.9rem; }
    .bonus-badge { font-size: 0.75rem; padding: 6px 14px; }
}
@media (max-width: 360px) {
    .otp-input { width: 34px; height: 44px; font-size: 1rem; }
    .otp-input-container { gap: 4px; }
}
