* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('/static/img/layer1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(41, 3, 102, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


.wrapper {
    width: 420px;
    background: rgba(8, 2, 22, 0.85);
    border: 1px solid rgba(118, 205, 255, 0.5);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(118, 205, 255, 0.3);
    color: #fff;
    border-radius: 15px;
    padding: 40px;
    margin-top: 70px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wrapper h1 {
    font-size: 36px;
    text-align: center;
    color: #76cdff;
    text-shadow: 0 0 10px rgba(118, 205, 255, 0.5);
    margin-bottom: 30px;
}

.wrapper .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 25px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(118, 205, 255, 0.3);
    outline: none;
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    padding: 20px 45px 20px 20px;
    transition: all 0.3s ease;
}

.input-box input:focus {
    border-color: #76cdff;
    box-shadow: 0 0 15px rgba(118, 205, 255, 0.4);
}

.input-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #4A148C; /* Тёмно-фиолетовый цвет иконок */
    transition: all 0.3s ease;
}

/* ... (keep all existing styles) ... */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(8, 2, 22, 0.95);
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #76cdff;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 0 20px rgba(118, 205, 255, 0.4);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #76cdff;
}

.modal-content input {
    width: 100%;
    padding: 12px 15px;
    margin: 15px 0;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(118, 205, 255, 0.3);
    color: white;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.modal-content input:focus {
    border-color: #76cdff;
    box-shadow: 0 0 10px rgba(118, 205, 255, 0.4);
}

.modal-content button {
    background: linear-gradient(45deg, rgba(0, 183, 255, 0.8), rgba(122, 0, 255, 0.8));
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(118, 205, 255, 0.3);
}

.modal-content button:hover {
    background: linear-gradient(45deg, rgba(0, 183, 255, 1), rgba(122, 0, 255, 1));
    box-shadow: 0 0 15px rgba(118, 205, 255, 0.5);
    transform: translateY(-2px);
}

.close {
    color: rgba(255,255,255,0.7);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #76cdff;
}

/* ... (rest of your existing CSS) ... */

.input-box input:focus + i {
    color: #76cdff; /* Акцентный цвет при фокусе */
}

.wrapper .remember {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0 15px;
    align-items: center;
}

.remember label {
    display: flex;
    align-items: center;
    color: #e0e0e0;
}

.remember label input {
    accent-color: #76cdff;
    margin-right: 5px;
}

.remember a {
    color: #76cdff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.remember a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(118, 205, 255, 0.5);
}

.wrapper .btn {
    width: 100%;
    height: 45px;
    background: linear-gradient(45deg, rgba(0, 183, 255, 0.8), rgba(122, 0, 255, 0.8));
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(118, 205, 255, 0.3);
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wrapper .btn:hover {
    background: linear-gradient(45deg, rgba(0, 183, 255, 1), rgba(122, 0, 255, 1));
    box-shadow: 0 0 20px rgba(118, 205, 255, 0.5);
    transform: translateY(-2px);
}

.wrapper .register-link {
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 0;
    color: #e0e0e0;
}

.register-link b a {
    color: #76cdff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link b a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(118, 205, 255, 0.5);
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Mobile styles */
@media (max-width: 768px) {
    .wrapper {
        width: 90%;
        padding: 30px;
    }
    
    .navbar-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(8, 2, 22, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        display: none;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(118, 205, 255, 0.2);
    }

    .navbar-nav li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .navbar-nav li a {
        justify-content: center;
        padding: 0.8rem 1rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 25px;
    }
    
    .wrapper h1 {
        font-size: 28px;
    }
    
    .input-box input {
        padding: 15px 40px 15px 15px;
    }
    
    .input-box i {
        right: 15px;
        font-size: 18px;
    }
}