* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    text-align: center;
}

.login-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
    text-align: center;
}

/* Стили для уведомлений */
.notification {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.notification i {
    font-size: 18px;
}

.notification.error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.notification.warning {
    background-color: #fff8e1;
    color: #ff8f00;
    border-left: 4px solid #ffc107;
}

.notification.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.notification.info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

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

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e1e5eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Специальный стиль для поля 2FA */
.input-icon.twofa {
    display: flex;
    gap: 10px;
}

.input-icon.twofa i {
    position: static;
    transform: none;
    align-self: center;
    margin-left: 16px;
}

.input-icon.twofa input {
    padding-left: 16px;
    flex-grow: 1;
}

.twofa-info {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.remember-me input {
    accent-color: #4285f4;
}

.forgot-password {
    color: #4285f4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.signin-btn {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    margin-bottom: 5px;
}

.signin-btn:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.2);
}

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

/* Адаптивность */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 25px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .password-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Декоративные элементы */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05) 0%, rgba(66, 133, 244, 0.15) 100%);
    top: -150px;
    right: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.05) 0%, rgba(234, 67, 53, 0.15) 100%);
    bottom: -100px;
    left: -80px;
}
