* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #0f1130;
    position: relative;
    overflow: hidden;
}

/* پس‌زمینه‌ی متحرک با چند دایره‌ی محو رنگی */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    z-index: 0;
    animation: float 14s ease-in-out infinite;
}

.bg-blob.b1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -100px;
    background: #4f46e5;
}

.bg-blob.b2 {
    width: 380px;
    height: 380px;
    bottom: -140px;
    left: -80px;
    background: #8b5cf6;
    animation-delay: 3s;
}

.bg-blob.b3 {
    width: 260px;
    height: 260px;
    bottom: 10%;
    right: 8%;
    background: #06b6d4;
    opacity: 0.35;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 25px) scale(1.06); }
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width:1000px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.auth-side {
    background: linear-gradient(160deg, #4f46e5, #7c3aed 55%, #a855f7);
    color: #fff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 55%);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2.2rem;
    position: relative;
}

.auth-brand i {
    background: rgba(255, 255, 255, 0.18);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.auth-side h1 {
    font-size: 1.9rem;
    line-height: 1.7;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 2rem;
    position: relative;
}

.auth-side p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    font-size: 0.95rem;
    max-width: 380px;
    position: relative;
}

.auth-feature-list {
    margin-top: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
}

.auth-feature-list li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
}

.auth-feature-list i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.auth-form-side {
    padding: 3rem 2.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-side h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.4rem;
}

.auth-form-side .auth-subtitle {
    color: #8888aa;
    font-size: 0.88rem;
    margin-bottom: 1.8rem;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a4a6a;
    margin-bottom: 0.45rem;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #a0a8c0;
    font-size: 0.9rem;
}

.input-icon-wrap input {
    width: 100%;
    padding: 0.85rem 2.6rem 0.85rem 1rem;
    border: 1.5px solid #e4e7f0;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.92rem;
    background: #f8faff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.input-icon-wrap input:focus {
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.toggle-pass {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #a0a8c0;
    cursor: pointer;
    font-size: 0.9rem;
    background: none;
    border: none;
    padding: 0;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.4rem;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(79, 70, 229, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.87rem;
    color: #8888aa;
}

.auth-switch a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.auth-alert.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

@media (max-width: 820px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .auth-side {
        display: none;
    }
    .auth-form-side {
        padding: 2.4rem 1.8rem;
    }
}
