* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* Декоративные элементы фона */
body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    pointer-events: none;
}

/* Основная карточка */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(2px);
    border-radius: 2rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    width: 100%;
    max-width: 460px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 55px rgba(0, 0, 0, 0.25);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Шапка */
.brand {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-icon {
    background: linear-gradient(120deg, #667eea, #764ba2);
    width: 70px;
    height: 70px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 12px 20px -8px rgba(102, 126, 234, 0.4);
}

.brand-icon i {
    font-size: 2.4rem;
    color: white;
}

.brand h1 {
    font-size: 1.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, #333, #5a5a5a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.4rem;
    font-weight: 400;
}

/* Поля ввода */
.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.input-icon {
    background: #f8f9fa;
    border-radius: 12px;
    width: 48px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.input-icon i {
    font-size: 1.2rem;
    color: #667eea;
}

.input-field {
    flex: 1;
    position: relative;
}

.input-field input {
    width: 100%;
    padding: 0.9rem 0.75rem 0.4rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.input-field input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field label {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8b96a5;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 0.2rem;
}

.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label {
    top: 0.2rem;
    transform: translateY(0);
    font-size: 0.7rem;
    color: #667eea;
    background: white;
    padding: 0 0.3rem;
}

.input-field input::placeholder {
    opacity: 0;
}

/* Чекбокс и ссылка */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-right: 0.6rem;
    transition: all 0.2s;
    display: inline-block;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: #667eea;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #667eea;
    border-color: #667eea;
    position: relative;
}

.checkbox-label input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-text {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

.forgot-link {
    font-size: 0.85rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Кнопка входа */
.login-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(120deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    font-size: 1rem;
    transition: transform 0.2s;
}

.login-btn:hover i {
    transform: translateX(3px);
}

/* Регистрация */
.register-prompt {
    text-align: center;
    margin-bottom: 1.8rem;
}

.register-prompt p {
    color: #6c757d;
    font-size: 0.9rem;
}

.register-prompt a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.register-prompt a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Разделитель */
.divider {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #8b96a5;
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 0;
}

/* Социальные кнопки */
.social-login {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.social-btn {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
}

.social-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-btn.google i {
    color: #ea4335;
    font-size: 1.1rem;
}

.social-btn.github i {
    color: #24292e;
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 520px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .brand h1 {
        font-size: 1.6rem;
    }

    .input-group {
        gap: 0.5rem;
    }

    .input-icon {
        width: 44px;
        height: 48px;
    }

    .social-btn span {
        display: none;
    }

    .social-btn {
        padding: 0.7rem;
    }

    .social-btn i {
        font-size: 1.2rem;
        margin: 0;
    }
}

@media (max-width: 380px) {
    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

