 |

29.07.2025, 13:30
|
|
Новичок
Регистрация: 24.07.2025
Сообщений: 6
С нами:
426411
Репутация:
3
|
|
Этот html предлагает возможность авторизации.
Для этого необходимо ввести номер телефона и пароль. Также есть опция «Запомнить меня» (она носит декоративный характер), а также кнопки для авторизации через Facebook, Google и Apple.
Оформление сайта выполнено в тёмных тонах с использованием синих элементов.
(Кнопки для авторизации через Apple, Facebook и Google и.т.д не функционируют.)
(Мне нравится мессенджер Telegram.)
Вход:
Код:
Telegram login
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #0e0e0e 0%, #1c1c1c 100%);
color: #e1e1e1;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
position: relative;
overflow-x: hidden;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at center, rgba(0, 136, 204, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
z-index: -1;
}
.telegram-logo {
position: absolute;
top: 30px;
left: 50%;
transform: translateX(-50%);
font-size: 2.5rem;
color: #0088cc;
}
.container {
background: rgba(30, 30, 30, 0.9);
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
width: 100%;
max-width: 450px;
padding: 40px 30px;
position: relative;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.container::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, #0088cc, #00a8ff);
}
h1 {
text-align: center;
margin-bottom: 30px;
font-size: 28px;
font-weight: 600;
color: #f1f1f1;
position: relative;
}
h1::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background: #0088cc;
border-radius: 3px;
}
.input-group {
margin-bottom: 25px;
position: relative;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #a0a0a0;
font-size: 14px;
}
.input-container {
position: relative;
}
input {
width: 100%;
padding: 15px 20px 15px 50px;
background: rgba(40, 40, 40, 0.8);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
font-size: 16px;
color: #f1f1f1;
transition: all 0.3s ease;
}
input:focus {
outline: none;
border-color: #0088cc;
box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.3);
}
.input-icon {
position: absolute;
left: 18px;
top: 50%;
transform: translateY(-50%);
color: #0088cc;
font-size: 18px;
}
.password-toggle {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
color: #777;
cursor: pointer;
font-size: 18px;
}
.password-toggle:hover {
color: #0088cc;
}
.btn {
display: block;
width: 100%;
padding: 16px;
background: linear-gradient(135deg, #0088cc, #006699);
color: white;
border: none;
border-radius: 12px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 10px;
position: relative;
overflow: hidden;
}
.btn:hover {
background: linear-gradient(135deg, #00a8ff, #0088cc);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}
.btn:active {
transform: translateY(0);
}
.terms {
text-align: center;
margin: 25px 0;
font-size: 14px;
color: #888;
line-height: 1.5;
}
.terms a {
color: #0088cc;
text-decoration: none;
transition: color 0.3s;
}
.terms a:hover {
color: #00a8ff;
text-decoration: underline;
}
.register-link {
text-align: center;
margin-top: 25px;
color: #a0a0a0;
font-size: 15px;
}
.register-link a {
color: #0088cc;
text-decoration: none;
font-weight: 600;
margin-left: 5px;
}
.register-link a:hover {
text-decoration: underline;
}
.divider {
display: flex;
align-items: center;
margin: 25px 0;
}
.divider::before,
.divider::after {
content: '';
flex: 1;
height: 1px;
background: rgba(255, 255, 255, 0.1);
}
.divider span {
padding: 0 15px;
color: #888;
font-size: 14px;
}
.social-login {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 20px;
}
.social-btn {
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(40, 40, 40, 0.8);
display: flex;
align-items: center;
justify-content: center;
color: #f1f1f1;
font-size: 20px;
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-btn:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
border-color: rgba(0, 136, 204, 0.5);
}
.facebook:hover {
background: linear-gradient(135deg, #3b5998, #2d4373);
}
.google:hover {
background: linear-gradient(135deg, #dd4b39, #c23321);
}
.apple:hover {
background: linear-gradient(135deg, #a2aaad, #6d6d6d);
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.container > * {
animation: fadeIn 0.6s ease-out forwards;
}
h1 { animation-delay: 0.1s; }
.input-group:nth-child(1) { animation-delay: 0.2s; }
.input-group:nth-child(2) { animation-delay: 0.3s; }
.btn { animation-delay: 0.4s; }
.terms { animation-delay: 0.5s; }
.divider { animation-delay: 0.6s; }
.social-login { animation-delay: 0.7s; }
.register-link { animation-delay: 0.8s; }
@media (max-width: 500px) {
.container {
padding: 30px 20px;
}
h1 {
font-size: 24px;
}
input {
padding: 13px 15px 13px 45px;
font-size: 15px;
}
.input-icon {
left: 15px;
font-size: 16px;
}
.btn {
padding: 14px;
}
}
.input-container:focus-within .input-icon {
color: #00a8ff;
transform: translateY(-50%) scale(1.1);
}
.btn::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 5px;
height: 5px;
background: rgba(255, 255, 255, 0.5);
opacity: 0;
border-radius: 100%;
transform: scale(1, 1) translate(-50%);
transform-origin: 0 0;
}
.btn:active::after {
animation: ripple 0.6s ease-out;
}
@keyframes ripple {
0% {
transform: scale(0, 0);
opacity: 0.5;
}
100% {
transform: scale(50, 50);
opacity: 0;
}
}
.remember-group {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.remember-group input {
width: auto;
margin-right: 10px;
}
.remember-group label {
margin-bottom: 0;
color: #a0a0a0;
font-size: 14px;
}
.forgot-password {
margin-left: auto;
color: #0088cc;
text-decoration: none;
font-size: 14px;
transition: color 0.3s;
}
.forgot-password:hover {
color: #00a8ff;
text-decoration: underline;
}
Вход
Телефон
Пароль
Запомнить меня
Забыли пароль?
Войти
Входя в аккаунт, вы принимаете
Условия использования
и
Политику конфиденциальности
или
Нет аккаунта?
Зарегистрироваться
const togglePassword = document.getElementById('togglePassword');
const password = document.getElementById('password');
togglePassword.addEventListener('click', function() {
const type = password.getAttribute('type') === 'password' ? 'text' : 'password';
password.setAttribute('type', type);
this.classList.toggle('fa-eye');
this.classList.toggle('fa-eye-slash');
});
const phoneInput = document.getElementById('phone');
phoneInput.addEventListener('input', function(e) {
let value = e.target.value.replace(/\D/g, '');
if (value.length > 0) {
value = '+7 (' + value.substring(1, 4) + ') ' + value.substring(4, 7) + '-' + value.substring(7, 11);
}
e.target.value = value;
});
const loginBtn = document.getElementById('loginBtn');
loginBtn.addEventListener('click', function(e) {
e.preventDefault();
const phone = phoneInput.value.replace(/\D/g, '');
const passwordValue = password.value;
const remember = document.getElementById('remember').checked;
if (phone.length !== 11) {
alert('Пожалуйста, введите корректный номер телефона');
return;
}
if (passwordValue.length Вход...';
this.disabled = true;
setTimeout(() => {
this.innerHTML = ' Успешно!';
this.style.background = 'linear-gradient(135deg, #00c853, #009624)';
setTimeout(() => {
phoneInput.value = '';
password.value = '';
this.innerHTML = 'Войти';
this.style.background = 'linear-gradient(135deg, #0088cc, #006699)';
this.disabled = false;
alert('Вход выполнен успешно! Добро пожаловать!');
}, 1500);
}, 1500);
});
document.querySelectorAll('.social-btn').forEach(btn => {
btn.addEventListener('mouseenter', function() {
const icon = this.querySelector('i');
icon.style.transform = 'scale(1.2)';
});
btn.addEventListener('mouseleave', function() {
const icon = this.querySelector('i');
icon.style.transform = 'scale(1)';
});
btn.addEventListener('click', function() {
const service = this.querySelector('i').className.split(' ')[1];
let serviceName;
switch(service) {
case 'fa-facebook-f': serviceName = 'Facebook'; break;
case 'fa-google': serviceName = 'Google'; break;
case 'fa-apple': serviceName = 'Apple'; break;
}
alert(`Вы выбрали вход через${serviceName}`);
});
});
document.querySelector('.forgot-password').addEventListener('click', function(e) {
e.preventDefault();
alert('Функция восстановления пароля временно недоступна');
});

|
|
|
|
 |
|
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
|
|
|
|