/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: #202124;
}

/* Шапка с киберпанк-градиентом */
.header-banner {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Анимированная сетка поверх градиента */
.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255,255,255,0.1) 50px,
            rgba(255,255,255,0.1) 51px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255,255,255,0.05) 50px,
            rgba(255,255,255,0.05) 51px
        );
    animation: moveGrid 20s linear infinite;
}

/* Дополнительный эффект свечения */
.header-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

/* Содержимое шапки */
.header-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

/* Главный заголовок */
.header-title {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    font-size: 42px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 12px;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    animation: glowPulse 3s ease-in-out infinite;
}

/* Подзаголовок */
.header-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Декоративные линии по бокам от заголовка */
.header-title::before,
.header-title::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    vertical-align: middle;
    margin: 0 20px;
}

/* Анимации */
@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes glowPulse {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% { 
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 0.7),
            0 0 30px rgba(255, 255, 255, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Контейнер формы */
.login-container {
    background: white;
    padding: 48px 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    margin-top: 60px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-container h2 {
    margin-top: 0;
    color: #202124;
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 32px;
}

/* Группы полей ввода */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    color: #202124;
    transition: all 0.2s ease;
    background-color: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
    border-width: 2px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(66,133,244,0.3);
}

.form-group input:hover {
    border-color: #1a73e8;
}

/* Кнопки в стиле Google */
.btn-submit {
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background-color: #f1f3f4;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3);
}

.btn-submit:active {
    background-color: #e8eaed;
}

/* Ссылка "Вернуться" */
.btn-return {
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.btn-return:hover {
    background-color: #f1f3f4;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3);
    text-decoration: none;
}

/* Страница ошибки */
.error-container {
    background: white;
    padding: 48px 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    margin-top: 60px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.error-container h2 {
    color: #d93025;
    font-weight: 400;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 16px;
}

.error-container p {
    color: #5f6368;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .header-banner {
        height: 100px;
    }
    
    .header-title {
        font-size: 28px;
        letter-spacing: 6px;
    }
    
    .header-title::before,
    .header-title::after {
        width: 20px;
        margin: 0 10px;
    }
    
    .header-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }
    
    .login-container,
    .error-container {
        margin: 30px 20px;
        padding: 32px 24px;
    }
    
    .form-group input {
        padding: 11px 13px;
        font-size: 14px;
    }
    
    .form-group input:focus {
        padding: 10px 12px;
    }
}
