/* استفاده از dvh برای موبایل */
body { 
    font-family: 'Vazirmatn', sans-serif; 
    background-color: #0f172a;
    overflow-x: hidden;
    min-height: 100vh; /* Fallback */
    min-height: 100dvh; /* Dynamic Viewport Height */
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- Animated Background Blobs --- */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: move 10s infinite alternate;
}
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #2563eb; animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -10%; width: 400px; height: 400px; background: #7c3aed; animation-delay: -5s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(20px, -20px) scale(1.1); }
}

/* --- Floating Input Animation --- */
.floating-input-group { position: relative; }
.floating-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(71, 85, 105, 0.5);
    border-radius: 1rem;
    padding: 1.25rem 1rem 0.5rem 3rem; 
    color: white;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: left; 
    direction: ltr;   
}
.floating-input:focus {
    border-color: #3b82f6;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.floating-label {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    direction: rtl;
    transform-origin: top right;
}
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: -0.6rem;
    right: 0.8rem;
    font-size: 0.75rem;
    color: #60a5fa;
    font-weight: bold;
    background-color: rgba(15, 23, 42, 1);
    padding: 0 5px;
    border-radius: 4px;
}
.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: color 0.3s;
}
.floating-input:focus ~ .input-icon { color: #3b82f6; }

/* --- OTP Inputs --- */
.otp-container { direction: ltr; display: flex; gap: 8px; justify-content: center; }
.otp-input {
    width: 3rem; height: 3.5rem;
    text-align: center; font-size: 1.5rem; font-weight: bold;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(71, 85, 105, 0.5);
    color: white; outline: none; transition: all 0.2s;
}
.otp-input:focus { border-color: #3b82f6; background: rgba(15, 23, 42, 0.9); transform: translateY(-2px); }

/* --- Form Slider Animation --- */
.forms-container {
    position: relative;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
}
.form-slide {
    position: absolute;
    top: 0;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    opacity: 0;
    visibility: hidden;
}
.form-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- Toggle Switch --- */
.toggle-container {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.toggle-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 9999px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    z-index: 1;
}
.toggle-text {
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}