* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #4A3191; /* Оригинальный фиолетовый цвет MEGA */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Верхний правый переключатель */
.top-bar {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-label {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
}

/* Стили тумблера (Switch) */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: #E2E2E2; /* Цвет при активации */
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Контейнер формы */
.login-container {
    width: 100%;
    max-width: 416px; /* Стандартная ширина блока со скриншота */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 40px;
}

.logo {
    width: 160px;
    height: auto;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    height: 48px;
    background-color: #F0EFF4; /* Цвет инпутов с макета */
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 15px;
    color: #333333;
    outline: none;
    transition: background-color 0.2s;
}

.input-group input::placeholder {
    color: #9E9E9E;
}

/* Контейнер для пароля с иконкой глаза */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #4A3191; /* Иконка в цвет бренда */
    display: flex;
    align-items: center;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

/* Кнопка Далее */
.submit-btn {
    width: 100%;
    height: 48px;
    background-color: #E2E1E6; /* Полупрозрачный/серый тон неактивной кнопки */
    border: none;
    border-radius: 8px;
    color: #9E9E9E;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.submit-btn:hover {
    background-color: #EAE9EE;
}

.submit-btn.active {
    background-color: #72bf45 !important; /* Ваш зеленый цвет */
    color: #FFFFFF !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(114, 191, 69, 0.3); /* Легкое зеленое свечение */
}