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

:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --primary-light: #3388dd;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --telegram-color: #0088cc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Telegram Button */
.telegram-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-telegram {
    background: linear-gradient(135deg, var(--telegram-color) 0%, #006699 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
}

.btn-telegram i {
    font-size: 1.2rem;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.magnifying-glass {
    position: absolute;
    font-size: 2rem;
    color: rgba(0, 102, 204, 0.1);
    animation: float 20s infinite linear;
}

.mg-1 {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.mg-2 {
    top: 30%;
    left: -10%;
    animation-delay: 3s;
    font-size: 1.5rem;
}

.mg-3 {
    top: 50%;
    left: -8%;
    animation-delay: 6s;
    font-size: 2.5rem;
}

.mg-4 {
    top: 70%;
    left: -12%;
    animation-delay: 9s;
    font-size: 1.8rem;
}

.mg-5 {
    top: 20%;
    left: -15%;
    animation-delay: 12s;
    font-size: 2.2rem;
}

.mg-6 {
    top: 60%;
    left: -6%;
    animation-delay: 15s;
    font-size: 1.6rem;
}

.mg-7 {
    top: 85%;
    left: -10%;
    animation-delay: 18s;
    font-size: 2rem;
}

.mg-8 {
    top: 40%;
    left: -14%;
    animation-delay: 21s;
    font-size: 1.9rem;
}

@keyframes float {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(120vw) translateY(100px) rotate(360deg);
        opacity: 0;
    }
}

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

.login-box {
    background: linear-gradient(145deg, rgba(18, 18, 26, 0.95) 0%, rgba(10, 10, 15, 0.95) 100%);
    border: 2px solid rgba(0, 102, 204, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 102, 204, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.logo i {
    font-size: 2.2rem;
}

.login-box h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-primary);
}

.login-box > p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Form */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    z-index: 1;
}

.input-group input {
    width: 100%;
    background-color: rgba(10, 10, 15, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 15px 15px 50px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

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

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error Message */
.error-message {
    margin-top: 20px;
    padding: 12px 15px;
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    color: #ff4444;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message i {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 40px 25px;
    }
    
    .telegram-button {
        right: 10px;
        top: 10px;
    }
    
    .btn-telegram {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}
