* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

html, body {
    height: 10%;
    overflow: hidden;
    background-color: black; /* черный фон страницы */
}

/* Фон с картинкой, блюр и легкий затемняющий слой */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; /* черный подложка */
    background-image: url('photo/cc99e40097e60d8164f5691cdcca0d9d\ \(1\).gif');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: grayscale(100%) blur(10px) brightness(1); /* картинка видна */
    z-index: 0;
    transition: transform 1s ease, filter 2s ease;
}

/* Легкий затемняющий слой через псевдоэлемент */
.background::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.05); /* почти прозрачный слой */
}

/* Контейнер для форм */
.form-container {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: 90%;
}
/* Логотип (луна) */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: url('photo/7acd0c9379961f547d22b003df1523ea.jpg') center/cover no-repeat;
    box-shadow: 0 0 20px #fff, 0 0 40px rgb(0, 0, 0), 0 0 60px rgb(255, 255, 255);
    animation: spin 10s linear infinite; /* можно убрать вращение если не нужно */
}

/* Анимация вращения (опционально) */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Надпись под луной */
.logo-text {
    margin-top: 10px;
    color: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 1.2em;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgb(0, 0, 0), 0 0 16px rgb(0, 0, 0);
}


/* Общие стили окон */
.login-container,
.register-container {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(14px);
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 50px rgba(0,0,0,0.6), 0 0 25px rgba(255,255,255,0.1) inset;
    color: #fff;
    text-align: center;
    padding: 50px 40px;
    position: absolute;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.8s ease, box-shadow 0.8s ease;
}

.login-container:hover,
.register-container:hover {
    box-shadow: 0 20px 60px rgba(255,255,255,0.2), 0 0 30px rgba(255,255,255,0.15) inset;
}

/* Активное окно */
.active {
    opacity: 1;
    pointer-events: auto;
}

/* Заголовки */
.login-container h2,
.register-container h2 {
    margin-bottom: 30px;
    font-size: 2.2em;
    letter-spacing: 1.2px;
    text-shadow: 0 0 12px rgba(255,255,255,0.4);
}

/* Инпуты */
.input-group {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.5s ease;
}

.input-group.show {
    opacity: 1;
    transform: translateX(0);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 16px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    outline: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder {
    color: rgba(255,255,255,0.7);
}

input:focus {
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 25px rgba(255,255,255,0.35), 0 0 12px rgba(255,255,255,0.2) inset;
}

/* Кнопка */
.submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #fff, #ccc);
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 12px 30px rgba(255,255,255,0.2);
    opacity: 0;
    transform: translateX(60px);
}

.submit-btn.show {
    opacity: 1;
    transform: translateX(0);
}

.submit-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 50px rgba(255,255,255,0.5), 0 0 20px rgba(255,255,255,0.25) inset;
}

/* Ссылки переключения */
.toggle-link {
    display: block;
    margin-top: 20px;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.5s ease, text-shadow 0.5s ease;
}

.toggle-link.show {
    opacity: 1;
    transform: translateX(0);
}

.toggle-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(255,255,255,0.4);
}
/*тут пизда карочи
/* Общие */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Roboto', sans-serif; }
html, body { height: 100%; overflow: hidden; background-color: black; }

/* Фон */
.main-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('photo/qwe.jpg'); /* путь к картинке */
    background-position: center; background-repeat: no-repeat; background-size: cover;
    filter: grayscale(10%) blur(5px) brightness(1.1);
    z-index: 1;
}

/* Верхняя панель */
.top-bar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.5); display: flex;
    justify-content: space-between; align-items: center;
    padding: 10px 20px; z-index: 1000; backdrop-filter: blur(5px);
}

.logo-left { display: flex; align-items: center; gap: 10px; }
.small-logo {
    width: 40px; height: 40px; border-radius: 50%;
    background: url('photo/7acd0c9379961f547d22b003df1523ea.jpg') center/cover no-repeat;
    animation: moonGlow 2.5s infinite ease-in-out;
}
.logo-text { color:#fff; font-weight:bold; font-size:1.2em; text-shadow:0 0 6px rgba(0,0,0,0.7); }
.top-buttons { display:flex; gap:10px; }
.top-btn { padding:8px 15px; background: rgba(255,255,255,0.1); color:#fff; text-decoration:none; font-weight:bold; border-radius:12px; backdrop-filter: blur(10px); transition: all 0.3s ease; }
.top-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.05); }

/* Анимация свечения луны */
@keyframes moonGlow {
    0% { box-shadow: 0 0 10px #fff, 0 0 20px rgba(255,255,255,0.5), 0 0 30px rgba(255,255,255,0.3); transform: scale(1); }
    50% { box-shadow: 0 0 15px #fff, 0 0 25px rgba(255,255,255,0.6), 0 0 35px rgba(255,255,255,0.4); transform: scale(1.05); }
    100% { box-shadow: 0 0 10px #fff, 0 0 20px rgba(255,255,255,0.5), 0 0 30px rgba(255,255,255,0.3); transform: scale(1); }
}

/* Основной контейнер */
.main-container {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 250px; text-align: center; z-index: 10;
}

/* Кнопка скачать */
#downloadBtn {
    display: inline-block; width: 100%; padding: 16px;
    border-radius: 50px; border: none;
    background: linear-gradient(135deg,#fff,#ccc);
    color: #000; font-weight: bold; font-size: 1.2em;
    cursor: pointer; position: relative;
    animation: pulse 2s infinite; text-shadow: 0 0 8px rgba(0,0,0,0.6);
    box-shadow: 0 12px 30px rgba(255,255,255,0.2); transition: all 0.3s ease;
}

#downloadBtn:hover { transform: scale(1.1); box-shadow: 0 20px 60px rgba(255,255,255,0.6), 0 0 20px rgba(255,255,255,0.3) inset; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow:0 12px 30px rgba(255,255,255,0.2); }
    50% { transform: scale(1.05); box-shadow:0 15px 40px rgba(255,255,255,0.35); }
    100% { transform: scale(1); box-shadow:0 12px 30px rgba(255,255,255,0.2); }
}

/* Баннер успешного скачивания */
#downloadMsg {
    position: fixed; top: 60px; left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: rgba(0,200,0,0.9); color:#fff; font-weight:bold;
    font-size:1.2em; padding:12px 25px; border-radius:8px;
    opacity:0; pointer-events:none; z-index:999; box-shadow:0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.5s ease;
}
#downloadMsg.show { opacity:1; transform: translateX(-50%) translateY(0); }
.error-msg {
    margin-top: 15px;
    color: #ff4d4d;
    font-weight: bold;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-msg.show {
    opacity: 1;
}
