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

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 20% 50%, #667eea 0%, #3a0ca3 50%, #1a0a3e 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Анимированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 30%, rgba(120, 80, 200, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
}

/* Кристальная карточка */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-card:hover .card-glow {
    opacity: 1;
}

/* Заголовок */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.logo-icon i {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-header h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Форма */
.login-form {
    display: flex;
    flex-direction: column;
}

/* Поля ввода - единый стиль */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: all 0.2s;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    outline: none;
    color: white;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Блокировка автозаполнения браузера */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(79, 70, 229, 0.4) inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white !important;
    background-color: transparent !important;
    background: rgba(79, 70, 229, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.input-group input:-moz-autofill,
.input-group input:autofill {
    background: rgba(79, 70, 229, 0.4) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 0 1000px rgba(79, 70, 229, 0.4) inset !important;
}

.input-group input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.input-group input:focus + i {
    color: white;
}

/* Кнопка входа - бело-синий стиль */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: white;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.login-btn i {
    font-size: 1rem;
    transition: transform 0.2s;
    color: white;
}

.login-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

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

/* Сообщение об ошибке */
.demo-message {
    margin-top: 1rem;
    background: rgba(239, 68, 68, 0.15);
    border-left: 3px solid #ef4444;
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    color: #fca5a5;
    display: none;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Ссылка на регистрацию */
.register-link-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
}

.register-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.register-link-btn {
    background: none;
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.register-link-btn:hover {
    color: #a78bfa;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Футер с юридическими ссылками */
.privacy-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.privacy-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s;
}

.privacy-footer a:hover {
    color: white;
    text-decoration: underline;
}

.privacy-footer .separator {
    margin: 0 0.4rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Адаптивность */
@media (max-width: 480px) {
    .wrapper {
        padding: 1rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .logo-icon {
        width: 55px;
        height: 55px;
    }
    
    .logo-icon i {
        font-size: 2rem;
    }
    
    .card-header h1 {
        font-size: 1.4rem;
    }
    
    .card-header p {
        font-size: 0.8rem;
    }
    
    .card-header {
        margin-bottom: 1.5rem;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    .input-group input {
        padding: 0.85rem 1rem 0.85rem 2.5rem;
        font-size: 0.85rem;
    }
    
    .login-btn {
        padding: 0.85rem;
        font-size: 0.9rem;
        margin-top: 0.25rem;
    }
    
    .register-link-wrapper {
        margin-top: 1rem;
    }
    
    .privacy-footer {
        margin-top: 1rem;
    }
}