* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: #0a0e17;
    color: #ffffff;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* پس زمینه انیمیشنی */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    transform: perspective(500px) rotateX(60deg);
}

@keyframes moveGrid {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    top: 10%;
    left: 10%;
    animation: float 15s infinite ease-in-out;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #ff00ff, #8000ff);
    bottom: 20%;
    right: 15%;
    animation: float 20s infinite ease-in-out reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #ffff00, #ff8000);
    top: 50%;
    left: 80%;
    animation: float 25s infinite ease-in-out;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #00ff80, #0080ff);
    bottom: 40%;
    left: 20%;
    animation: float 18s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.neon-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* پنل ورود */
.login-panel {
    background: rgba(16, 22, 36, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.login-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ff80);
    z-index: -1;
    border-radius: 27px;
    animation: rotate 4s linear infinite;
}

.login-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 22, 36, 0.95);
    border-radius: 25px;
    z-index: -1;
}

@keyframes rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.panel-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #00ffff;
    filter: drop-shadow(0 0 10px #00ffff);
}

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    color: #ff00ff;
}

.subtitle {
    color: #a0a0c0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* دستیار هوش مصنوعی */
.ai-assistant {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 0 20px #00ffff; }
    100% { box-shadow: 0 0 30px #0080ff; }
}

.ai-avatar i {
    font-size: 1.5rem;
}

.ai-message p {
    font-size: 0.9rem;
    color: #e0e0ff;
}

/* فرم ورود */
.login-form {
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    font-size: 1.2rem;
}

input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #0080ff);
    transition: width 0.3s ease;
}

input:focus ~ .focus-line {
    width: 100%;
}

.show-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0a0c0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.show-password:hover {
    color: #00ffff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #a0a0c0;
    font-size: 0.9rem;
}

.checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #00ffff;
    border-radius: 5px;
    margin-left: 8px;
    position: relative;
    transition: all 0.3s;
}

.checkbox input:checked ~ .checkmark {
    background: #00ffff;
}

.checkmark::after {
    content: '✓';
    position: absolute;
    color: #0a0e17;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.checkbox input:checked ~ .checkmark::after {
    opacity: 1;
}

.forgot-password {
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.forgot-password:hover {
    text-shadow: 0 0 10px #00ffff;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

.btn-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: slide 2s infinite linear;
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: #00ff80;
    font-size: 0.8rem;
    opacity: 0.8;
}

.features {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.feature i {
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 5px;
}

.feature span {
    font-size: 0.8rem;
    color: #a0a0c0;
}

.system-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 20px;
}

.info-card {
    background: rgba(16, 22, 36, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    min-width: 200px;
}

.info-card i {
    font-size: 2rem;
    color: #00ffff;
}

.info-content h3 {
    font-size: 0.9rem;
    color: #a0a0c0;
    margin-bottom: 5px;
}

.status {
    color: #00ff80;
    font-weight: 600;
}

.latency {
    color: #a0a0c0;
}

.latency span {
    color: #00ffff;
    font-weight: 600;
}