Простая Альтернативная Авторизация Game Cms

Шаблон GameCMS UNI GameCMS Простая Альтернативная Авторизация Game Cms 2025-12-07

Нет прав для скачивания
Источник
Topforo
Требования
Gamecms
Благодарности
TopForo
Screenshot (76).png
Screenshot (75).png
Screenshot (74).png

<!-- End head.tpl -->
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Auth System</title>
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Montserrat', sans-serif;
}

body {
position: relative;
background: #1a1a1a;
color: white;
min-height: 100vh;
overflow-x: hidden;
}

body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: -1;
}

/* Адаптивный видео-фон */
.background-video {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
z-index: -2;
filter: brightness(0.4);
object-fit: cover;
}

@media (max-width: 768px) {
.background-video {
display: none;
}
body::before {
background-color: rgba(0, 0, 0, 0.8);
}
}

/* Контроль звука */
.sound-control {
position: fixed;
top: 20px;
left: 20px;
z-index: 1001;
display: flex;
align-items: center;
gap: 10px;
}

.volume-btn {
background: #fefd2f;
border: none;
border-radius: 50%;
cursor: pointer;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s ease;
box-shadow: 0 0 10px rgba(254, 253, 47, 0.5);
}

.volume-btn:hover {
transform: scale(1.1);
}

.volume-btn img {
width: 60%;
height: 60%;
}

.sound-text {
color: #fefd2f;
font-size: 14px;
font-weight: 600;
opacity: 0.5;
transform: scale(0.9);
transition: all 0.5s ease;
white-space: nowrap;
}

.sound-text.visible {
opacity: 1;
transform: scale(1);
}

/* Основной контейнер */
.container {
position: absolute;
top: 50%;
left: -100%;
transform: translateY(-50%);
width: 80vw;
max-width: 1200px;
z-index: 10;
transition: left 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.container.active {
left: 10vw;
}

.left_auth_block {
max-width: 600px;
width: 100%;
}

.site_name_auth {
font-size: 24px;
font-weight: 700;
color: white;
margin-bottom: 20px;
}

.text_auth_block {
font-size: 5vw;
font-weight: 500;
color: white;
line-height: 1.2;
margin-bottom: 15px;
}

.flex_auth_text {
display: flex;
gap: 10px;
}

.future_text {
color: #000000;
font-weight: 800;
}

.text_description_auth {
font-size: 2vw;
font-weight: 500;
color: white;
line-height: 1.4;
margin-bottom: 25px;
}

/* Социальные иконки */
.social_auth {
display: flex;
gap: 15px;
align-items: center;
}

.icon-ds, .icon-tg, .icon-vk {
font-size: 26px;
color: white;
text-decoration: none;
transition: color 0.3s ease;
}

.icon-ds:hover, .icon-tg:hover, .icon-vk:hover {
color: #007bff;
}

.flex_social_text {
display: flex;
flex-direction: column;
}

.text_social {
font-size: 16px;
font-weight: 500;
color: white;
}

.desp_social {
font-size: 15px;
font-weight: 400;
color: white;
}

/* Кнопки авторизации */
.auth-buttons {
position: fixed;
bottom: -100px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 20px;
z-index: 1000;
width: 90%;
max-width: 400px;
justify-content: center;
transition: bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.auth-buttons.active {
bottom: 5vh;
}

.auth-btn {
background: #fefd2f;
color: #1a1a1a;
border: none;
padding: 15px 30px;
border-radius: 30px;
cursor: pointer;
display: flex;
align-items: center;
gap: 10px;
transition: 0.3s;
font-weight: 600;
box-shadow: 0 4px 15px rgba(254, 253, 47, 0.3);
flex: 1;
min-width: 150px;
justify-content: center;
}

.auth-btn:hover {
background: #d6d615;
transform: translateY(-5px);
}

/* Боковые панели */
.side-panel {
position: fixed;
right: -100%;
top: 0;
width: 100%;
max-width: 400px;
height: 100vh;
background: rgba(0, 0, 0, 0.95);
backdrop-filter: blur(15px);
transition: 0.4s cubic-bezier(0.33, 1, 0.68, 1);
padding: 30px;
z-index: 999;
overflow-y: auto;
border-left: 2px solid #fefd2f;
}

.side-panel.active {
right: 0;
}

/* Заголовок панели */
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(254, 253, 47, 0.2);
}

.panel-title {
font-size: 26px;
color: #fefd2f;
text-transform: uppercase;
letter-spacing: 1px;
}

/* Кнопка закрытия */
.close-btn {
background: none;
border: none;
color: white;
font-size: 32px;
cursor: pointer;
transition: 0.3s;
line-height: 1;
}

.close-btn:hover {
color: #fefd2f;
transform: rotate(180deg);
}

/* Формы */
.auth-form {
display: flex;
flex-direction: column;
gap: 25px;
margin-top: 30px;
}

.form-input {
background: rgba(255, 255, 255, 0.1);
border: 2px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 14px 20px;
color: white;
font-size: 16px;
transition: 0.3s;
width: 100%;
}

.form-input:focus {
outline: none;
border-color: #fefd2f;
background: rgba(254, 253, 47, 0.05);
}

.submit-btn {
background: #fefd2f;
color: #1a1a1a;
border: none;
padding: 16px;
border-radius: 10px;
cursor: pointer;
font-weight: 700;
text-transform: uppercase;
transition: 0.3s;
margin-top: 15px;
}

.submit-btn:hover {
background: #d6d615;
letter-spacing: 1px;
}

/* Индикатор сложности пароля */
.password-strength {
margin-top: 10px;
transition: all 0.3s;
}

.strength-meter {
height: 5px;
background: #444;
border-radius: 3px;
overflow: hidden;
margin-bottom: 5px;
}

.strength-bar {
height: 100%;
width: 0%;
transition: width 0.3s, background 0.3s;
}

.strength-text {
font-size: 12px;
color: #888;
transition: color 0.3s;
}

.strength-advice {
font-size: 11px;
color: #fefd2f;
margin-top: 5px;
min-height: 16px;
}

/* Социальные кнопки */
.social-auth {
display: flex;
gap: 15px;
margin-top: 30px;
justify-content: flex-end;
}

.social-btn {
background: #2c2c41;
border: none;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: 0.3s;
}

.social-btn:hover {
background: #3a3a55;
transform: translateY(-3px);
}

/* Вход через соцсети */
.vkbut, .steambut {
background: #2c2c41;
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: 0.3s;
}

.vkbut:hover, .steambut:hover {
background: #3a3a55;
transform: translateY(-3px);
}

/* Сообщения */
#result, #result2 {
padding: 10px;
margin: 15px 0;
border-radius: 5px;
text-align: center;
display: none;
}

.error { background: #ff000033; color: #ff5555; }
.success { background: #00ff0033; color: #55ff55; }

.privacy-policy {
display: block;
color: #888;
font-size: 12px;
margin: 10px 0;
text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
.side-panel.active {
z-index: 1002;
}

.sound-control {
z-index: 1000;
}

.container {
left: -100%;
width: 90vw;
padding: 20px;
}

.container.active {
left: 5vw;
}

.text_auth_block {
font-size: 8vw;
}

.text_description_auth {
font-size: 4vw;
}

.auth-buttons {
flex-direction: column;
gap: 15px;
}

.side-panel {
max-width: 100%;
padding: 25px;
}

.sound-text {
font-size: 12px;
}
}

@media (max-width: 480px) {
.text_auth_block {
font-size: 10vw;
}

.text_description_auth {
font-size: 5vw;
}

.panel-title {
font-size: 22px;
}

.auth-btn {
padding: 12px 20px;
}

.sound-control {
top: 15px;
left: 15px;
}

.volume-btn {
width: 35px;
height: 35px;
}

.sound-text {
font-size: 11px;
}
}
</style>
</head>
<body>
<!-- Видео фон -->
<video autoplay loop playsinline muted class="background-video" id="bgVideo">
<source src="../game-cms.ru/media.mp4" type="video/mp4">
Ваш браузер не поддерживает видео тег.
</video>

<!-- Контроль звука -->
<div class="sound-control" id="soundControl">
<button class="volume-btn" id="volumeBtn" data-volume="false">
<img src="../game-cms.ru/727240.png" alt="Mute">
</button>
<div class="sound-text" id="soundText">Нажмите для включения звука</div>
</div>

<!-- Основной контент -->
<div class="container" id="mainContainer">
<div class="left_auth_block">
<div class="site_name_auth">Game-Cms.ru</div>
<div class="social_auth">
<a href="https://game-cms.ru" class="icon-tg">
<i class="bx bxl-telegram"></i>
</a>
<a href="https://game-cms.ru" class="icon-vk">
<i class="bx bxl-vk"></i>
</a>
<div class="flex_social_text">
<span class="text_social">Посетите нас</span>
<span class="desp_social">на различных площадках</span>
</div>
</div>
</div>
</div>

<!-- Основные кнопки -->
<div class="auth-buttons active" id="authButtons">
<button class="auth-btn" id="loginBtn">
<i class='bx bx-log-in'></i>
Вход
</button>
<button class="auth-btn" id="registerBtn">
<i class='bx bx-user-plus'></i>
Регистрация
</button>
</div>

<!-- Панель входа -->
<div class="side-panel" id="loginPanel">
<div class="panel-header">
<h2 class="panel-title">Авторизация</h2>
<button class="close-btn">×</button>
</div>
<form id="user_login" class="auth-form">
<div class="input_login">
<i class='bx bx-user'></i>
<input type="text" maxlength="30" class="form_control_auth" id="user_loginn" placeholder="Введите логин">
</div>
<div class="input_login">
<i class='bx bx-lock-alt'></i>
<input type="password" maxlength="15" class="form_control_auth" id="user_password" placeholder="Введите пароль">
</div>
<button type="submit" class="submit-btn">Войти</button>
<div id="result" class="disp-n"></div>

<div class="social-auth">
<a class="vkbut" href="" id="vk_link" title="Войти через Вконтакте">
<i class='bx bxl-vk'></i>
</a>
<script>get_vk_auth_link();</script>
</div>
</form>
<script>send_form('#user_login', 'user_login();');</script>
<div style="margin-top: 25px; text-align: center;">
<a href="../recovery" class="privacy-policy">
Забыли пароль?
</a>
</div>
</div>
<!-- Панель регистрации -->
<div class="side-panel" id="registerPanel">
<div class="panel-header">
<h2 class="panel-title">Регистрация</h2>
<button class="close-btn">×</button>
</div>
<form id="user_registration" class="auth-form" method="POST">
<div class="input_login">
<i class='bx bx-user' ></i>
<input type="text" maxlength="30" class="form_control_auth" id="reg_login" placeholder="Придумайте логин">
</div>
<div class="input_login">
<i class='bx bx-lock-alt' ></i>
<input type="password" maxlength="15" class="form_control_auth" id="reg_password" placeholder="Придумайте пароль">
</div>
<div class="input_login">
<i class='bx bx-lock-alt' ></i>
<input type="password" maxlength="15" class="form_control_auth" id="reg_password2" placeholder="Повторите пароль">
</div>
<div class="input_login">
<i class='bx bx-envelope'></i>
<input type="email" maxlength="255" class="form_control_auth" id="reg_email" placeholder="Укажите E-mail">
</div>



<div class="block_auth_push">
<div id="result_api_reg"></div>
<button type="submit" id="api_reg_btn" class="btn btn-primary btn-block mt-2">Зарегистрироваться</button>
</div>
<div id="result2"></div>
</form>
<script> send_form('#user_registration', 'registration();'); </script>
</div>

<script>
// Управление звуком
const volumeBtn = document.getElementById('volumeBtn');
const bgVideo = document.getElementById('bgVideo');
const soundText = document.getElementById('soundText');
const soundControl = document.getElementById('soundControl');

// Анимация текста
function animateSoundText() {
setInterval(() => {
soundText.classList.toggle('visible');
}, 1000);
}

// Запуск анимации текста
animateSoundText();

volumeBtn.addEventListener('click', function() {
if(this.getAttribute('data-volume') === 'false') {
bgVideo.muted = false;
this.setAttribute('data-volume', 'true');
this.innerHTML = '<img src="../game-cms.ru/3161837.png" alt="Unmute">';
soundText.textContent = 'Звук включен';
} else {
bgVideo.muted = true;
this.setAttribute('data-volume', 'false');
this.innerHTML = '<img src="../game-cms.ru/727240.png" alt="Mute">';
soundText.textContent = 'Звук выключен';
}

soundText.classList.add('visible');
setTimeout(() => {
soundText.classList.remove('visible');
}, 2000);
});



// Адаптивный видео-фон
function updateVideoSource() {
const video = document.getElementById('bgVideo');
if (window.innerWidth < 768) {
video.style.display = 'block';
} else {
video.style.display = 'block';
}
}

window.addEventListener('resize', updateVideoSource);
updateVideoSource();

// Управление панелями
const loginBtn = document.getElementById('loginBtn');
const registerBtn = document.getElementById('registerBtn');
const loginPanel = document.getElementById('loginPanel');
const registerPanel = document.getElementById('registerPanel');
const closeBtns = document.querySelectorAll('.close-btn');
const authButtons = document.getElementById('authButtons');

// Переключение панелей
function togglePanel(panel) {
document.querySelectorAll('.side-panel').forEach(p => p.classList.remove('active'));
panel.classList.add('active');

if (window.innerWidth <= 768) {
soundControl.style.zIndex = '1000';
}

authButtons.classList.remove('active');
}

function showAuthButtons() {
authButtons.classList.add('active');
}

function closePanels() {
loginPanel.classList.remove('active');
registerPanel.classList.remove('active');

if (window.innerWidth <= 768) {
soundControl.style.zIndex = '1001';
}

showAuthButtons();
}

// Обработчики событий
loginBtn.addEventListener('click', () => togglePanel(loginPanel));
registerBtn.addEventListener('click', () => togglePanel(registerPanel));

closeBtns.forEach(btn => {
btn.addEventListener('click', () => closePanels());
});

document.addEventListener('click', (e) => {
if (!e.target.closest('.side-panel') &&
!e.target.closest('.auth-btn') &&
!e.target.closest('.close-btn')) {
closePanels();
}
});

// Управление видео
document.addEventListener('DOMContentLoaded', async () => {
try {
await bgVideo.play();
setTimeout(() => {
document.getElementById('mainContainer').classList.add('active');
}, 5000);
} catch (err) {
console.log('Автовоспроизведение заблокировано, требуется взаимодействие пользователя');
setTimeout(() => {
document.getElementById('mainContainer').classList.add('active');
}, 5000);
}
});

document.addEventListener('click', async () => {
if (bgVideo.paused) {
try {
await bgVideo.play();
} catch (err) {
console.error('Ошибка воспроизведения:', err);
}
}
});
</script>
</body>
</html>
<!-- Start bottom.tpl -->
Видео ролик фона!


Добавив Боксы сделайте на свой вкус и цвет
Off site [GameCMS]
Шаблон GameCMS  Off site [GameCMS] 2024-12-05
Шаблон  GrayMound 2024-12-06
Автор
nk.
Скачивания
0
Просмотры
19
Первый выпуск
Обновление

Оценки

0,00 звёзд Оценок: 0

Другие ресурсы пользователя nk.

Назад
Верх