.registerContainer{ width: 31%; background-color: #FFFFFF; padding: 94px 80px; margin: auto; border-radius: 43px; } .title{ text-align: center; font-weight: 600; font-size: 40px; line-height: 88%; padding: 0; margin-bottom: 80px; margin-top: 0; } .form{ text-align: center; display: flex; flex-direction: column; gap: 80px; margin-bottom: 80px; } .input { font-size: 24px; font-weight: 600; line-height: 88%; color: #000000; /* Цвет текста по умолчанию */ outline: none; border: none; border-bottom: 1px solid rgba(0, 0, 0, 0.2); /* Нижняя граница с прозрачностью */ padding: 5px 0; opacity: 1; /* Установите opacity в 1 для input, а для placeholder используйте opacity */ } .input::placeholder { font-size: 24px; font-weight: 600; line-height: 88%; color: #000000; opacity: 0.2; /* Прозрачность placeholder */ } .input:focus::placeholder { opacity: 0; /* Убираем placeholder при фокусе */ } /* Отключаем стиль для input, когда в нём есть данные */ .input:not(:placeholder-shown) { color: black; opacity: 1; } .input:focus { border-bottom: 1px solid black; /* Чёрная граница при фокусе */ } .signUp{ margin: auto; padding: 25.5px 16px; width: fit-content; border-radius: 24px; background-color: #3788D6; color: #FFFFFF; font-size: 24px; font-weight: 600; line-height: 120%; border: none; outline: none; } .recommendation{ text-align: center; font-size: 18px; font-weight: 500; } .recommendationLink{ color: #3788D6; margin-left: 5px; }