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

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
    padding: 20px;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
}

/* Левая часть (приветствие) */
.welcome-section {
    background-color: #3498db;
    color: white;
    padding: 80px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.welcome-section h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 16px;
    margin-bottom: 30px;
}

.register-btn {
    background-color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #3498db;
    display: inline-block;
}

.register-btn:hover {
    background-color: green;
    color: white;
}

/* Правая часть (форма входа) */
.login-form-section {
    padding: 40px;
    flex: 1;
}

.login-form-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 48px 12px 16px; /* Отступ справа увеличен, чтобы вместить иконки */
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
}

/* Иконки пользователя и замка */
.icon-user, .icon-lock {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 20px;
    pointer-events: none;
    z-index: 1;
}

/* Кнопка показа пароля (глаз) — она будет правее, чем замок */
.toggle-password {
    position: absolute;
    right: 44px; /* Сдвинуто, чтобы не наезжать на .icon-lock */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 18px;
    z-index: 2;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #333;
}

.forgot-link {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
}

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

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: green;
}

/* Адаптация для планшетов (768px — 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .welcome-section,
    .login-form-section {
        padding: 30px;
    }
    
    .welcome-section h1 {
        font-size: 32px;
    }
    
    .input-group input {
        padding: 12px 44px 12px 16px;
    }
}

/* Адаптация для мобильных устройств (480px — 767px) */
@media (max-width: 767px) {
    body {
        padding: 10px;
    }
    
    .login-container {
        flex-direction: column;
        max-width: 100%;
    }
    
    .welcome-section,
    .login-form-section {
        padding: 25px 20px;
    }
    
    .welcome-section h1 {
        font-size: 28px;
    }
    
    .welcome-section p {
        font-size: 14px;
    }
    
    .register-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .login-form-section h2 {
        font-size: 24px;
    }
    
    .input-group input {
        padding: 12px 40px 12px 16px;
        font-size: 15px;
    }
    
    .forgot-link {
        font-size: 13px;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 16px;
    }

    /* На мобильных глаз можно подвинуть чуть ближе, если нужно */
    .toggle-password {
        right: 38px;
    }
}

/* Адаптация для маленьких мобильных устройств (до 479px) */
@media (max-width: 479px) {
    body {
        padding: 5px;
    }
    
    .welcome-section,
    .login-form-section {
        padding: 20px 15px;
    }
    
    .welcome-section h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .welcome-section p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .register-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .login-form-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .input-group input {
        padding: 10px 36px 10px 14px;
        font-size: 14px;
    }
    
    .icon-user,
    .icon-lock {
        right: 12px;
        font-size: 18px;
    }

    .toggle-password {
        right: 34px;
    }
}
