/* Reset و فونت‌ها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
    font-weight: 100;
}

@font-face {
    font-family: 'Vazir';
    src: url('../content/font/Vazir-Black.woff2');
    font-display: swap;
}

:root {
    --primary-color: #4f0dca;
    --bg-color: #0f0f1a;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #fff;
    background-color: var(--bg-color);
    overflow-x: hidden;
    outline: none;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -moz-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* افکت حباب‌های شناور */
.floating-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-bubbles::before {
    content: "";
    position: absolute;
    left: 20%;
    width: 40px;
    height: 40px;
    background: rgb(0, 0, 0);
    border-radius: 50%;
    animation: bubble 15s linear infinite;
}

.floating-bubbles::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: 60%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: bubble 20s linear infinite;
}

@keyframes bubble {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

/* کانتینر لاگین */
.login-container {
    width: 90%;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 10;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
}


/* لوگو و عنوان */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 50px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* فرم ورود */
form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.input-group i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 10px;
}

.input-group input {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group input:focus {
    color: #fff;
}

/* دکمه ورود */
.login-btn {
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-btn:active {
    transform: translateY(0);
}

/* افکت particles */
.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
        width: 95%;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 45px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 15px;
    }

    .input-group input {
        padding: 12px 0;
        font-size: 14px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
    }
}