* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', monospace;
    background: radial-gradient(circle at 20% 30%, #0a0e1a, #03050b);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    /* Запрет выделения текста для body и всех дочерних элементов */
    user-select: none;
    -webkit-user-select: none;
}

/* Разрешаем выделение только в полях ввода */
input, textarea, .input-group input, .input-group textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* === ОБЛАКА (10 огромных, пышных) === */
.clouds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.cloud {
    position: absolute;
    filter: blur(22px);
    pointer-events: none;
}

.cloud-circle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 250, 240, 0.92), rgba(230, 220, 195, 0.6));
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(255, 245, 200, 0.45);
}

.cloud1 {
    top: 0%;
    left: -15%;
    width: 950px;
    height: 350px;
    animation: floatCloud 48s linear infinite;
}
.cloud1 .c1 { width: 260px; height: 260px; top: 10px; left: 30px; }
.cloud1 .c2 { width: 300px; height: 300px; top: 40px; left: 160px; }
.cloud1 .c3 { width: 280px; height: 280px; top: 5px; left: 340px; }
.cloud1 .c4 { width: 240px; height: 240px; top: 100px; left: 510px; }
.cloud1 .c5 { width: 220px; height: 220px; top: 150px; left: 80px; }
.cloud1 .c6 { width: 200px; height: 200px; top: 190px; left: 280px; }
.cloud1 .c7 { width: 180px; height: 180px; top: 240px; left: 450px; }
.cloud1 .c8 { width: 160px; height: 160px; top: 280px; left: 650px; }
.cloud1 .c9 { width: 140px; height: 140px; top: 310px; left: 550px; }

.cloud2 {
    top: 25%;
    left: -20%;
    width: 1050px;
    height: 380px;
    animation: floatCloud 55s linear infinite;
    animation-delay: -10s;
}
.cloud2 .c1 { width: 280px; height: 280px; top: 20px; left: 40px; }
.cloud2 .c2 { width: 320px; height: 320px; top: 50px; left: 180px; }
.cloud2 .c3 { width: 300px; height: 300px; top: 10px; left: 380px; }
.cloud2 .c4 { width: 260px; height: 260px; top: 110px; left: 560px; }
.cloud2 .c5 { width: 240px; height: 240px; top: 160px; left: 80px; }
.cloud2 .c6 { width: 220px; height: 220px; top: 200px; left: 320px; }
.cloud2 .c7 { width: 200px; height: 200px; top: 250px; left: 520px; }
.cloud2 .c8 { width: 180px; height: 180px; top: 300px; left: 750px; }

.cloud3 {
    top: 55%;
    left: -10%;
    width: 800px;
    height: 300px;
    animation: floatCloud 38s linear infinite;
    animation-delay: -18s;
}
.cloud3 .c1 { width: 220px; height: 220px; top: 15px; left: 30px; }
.cloud3 .c2 { width: 260px; height: 260px; top: 45px; left: 140px; }
.cloud3 .c3 { width: 240px; height: 240px; top: 10px; left: 300px; }
.cloud3 .c4 { width: 210px; height: 210px; top: 110px; left: 440px; }
.cloud3 .c5 { width: 190px; height: 190px; top: 160px; left: 80px; }
.cloud3 .c6 { width: 170px; height: 170px; top: 200px; left: 240px; }
.cloud3 .c7 { width: 150px; height: 150px; top: 240px; left: 400px; }

.cloud4 {
    top: 70%;
    left: -25%;
    width: 1100px;
    height: 400px;
    animation: floatCloud 60s linear infinite;
    animation-delay: -28s;
}
.cloud4 .c1 { width: 300px; height: 300px; top: 30px; left: 30px; }
.cloud4 .c2 { width: 350px; height: 350px; top: 60px; left: 180px; }
.cloud4 .c3 { width: 320px; height: 320px; top: 15px; left: 400px; }
.cloud4 .c4 { width: 280px; height: 280px; top: 120px; left: 600px; }
.cloud4 .c5 { width: 260px; height: 260px; top: 180px; left: 100px; }
.cloud4 .c6 { width: 240px; height: 240px; top: 230px; left: 350px; }
.cloud4 .c7 { width: 220px; height: 220px; top: 280px; left: 580px; }
.cloud4 .c8 { width: 200px; height: 200px; top: 330px; left: 800px; }
.cloud4 .c9 { width: 180px; height: 180px; top: 360px; left: 650px; }

.cloud5 {
    top: 12%;
    left: -30%;
    width: 700px;
    height: 260px;
    animation: floatCloud 32s linear infinite;
    animation-delay: -6s;
}
.cloud5 .c1 { width: 200px; height: 200px; top: 15px; left: 40px; }
.cloud5 .c2 { width: 240px; height: 240px; top: 40px; left: 150px; }
.cloud5 .c3 { width: 220px; height: 220px; top: 5px; left: 290px; }
.cloud5 .c4 { width: 190px; height: 190px; top: 110px; left: 420px; }
.cloud5 .c5 { width: 170px; height: 170px; top: 150px; left: 100px; }
.cloud5 .c6 { width: 150px; height: 150px; top: 190px; left: 260px; }
.cloud5 .c7 { width: 130px; height: 130px; top: 220px; left: 480px; }

.cloud6 {
    top: -5%;
    left: -35%;
    width: 900px;
    height: 320px;
    animation: floatCloud 52s linear infinite;
    animation-delay: -22s;
}
.cloud6 .c1 { width: 250px; height: 250px; top: 20px; left: 50px; }
.cloud6 .c2 { width: 290px; height: 290px; top: 50px; left: 170px; }
.cloud6 .c3 { width: 270px; height: 270px; top: 10px; left: 360px; }
.cloud6 .c4 { width: 230px; height: 230px; top: 100px; left: 530px; }
.cloud6 .c5 { width: 210px; height: 210px; top: 140px; left: 80px; }
.cloud6 .c6 { width: 190px; height: 190px; top: 190px; left: 290px; }
.cloud6 .c7 { width: 170px; height: 170px; top: 240px; left: 480px; }
.cloud6 .c8 { width: 150px; height: 150px; top: 280px; left: 680px; }

.cloud7 {
    top: 40%;
    left: -15%;
    width: 850px;
    height: 310px;
    animation: floatCloud 45s linear infinite;
    animation-delay: -35s;
}
.cloud7 .c1 { width: 240px; height: 240px; top: 15px; left: 30px; }
.cloud7 .c2 { width: 280px; height: 280px; top: 45px; left: 160px; }
.cloud7 .c3 { width: 260px; height: 260px; top: 5px; left: 340px; }
.cloud7 .c4 { width: 220px; height: 220px; top: 100px; left: 500px; }
.cloud7 .c5 { width: 200px; height: 200px; top: 150px; left: 100px; }
.cloud7 .c6 { width: 180px; height: 180px; top: 190px; left: 300px; }
.cloud7 .c7 { width: 160px; height: 160px; top: 240px; left: 500px; }
.cloud7 .c8 { width: 140px; height: 140px; top: 280px; left: 680px; }

.cloud8 {
    top: 82%;
    left: -10%;
    width: 1000px;
    height: 360px;
    animation: floatCloud 58s linear infinite;
    animation-delay: -15s;
}
.cloud8 .c1 { width: 280px; height: 280px; top: 25px; left: 40px; }
.cloud8 .c2 { width: 330px; height: 330px; top: 55px; left: 190px; }
.cloud8 .c3 { width: 300px; height: 300px; top: 10px; left: 410px; }
.cloud8 .c4 { width: 260px; height: 260px; top: 120px; left: 600px; }
.cloud8 .c5 { width: 240px; height: 240px; top: 170px; left: 90px; }
.cloud8 .c6 { width: 220px; height: 220px; top: 220px; left: 320px; }
.cloud8 .c7 { width: 200px; height: 200px; top: 270px; left: 540px; }
.cloud8 .c8 { width: 180px; height: 180px; top: 320px; left: 750px; }
.cloud8 .c9 { width: 160px; height: 160px; top: 340px; left: 620px; }

.cloud9 {
    top: 65%;
    left: -40%;
    width: 600px;
    height: 220px;
    animation: floatCloud 28s linear infinite;
    animation-delay: -42s;
}
.cloud9 .c1 { width: 180px; height: 180px; top: 10px; left: 30px; }
.cloud9 .c2 { width: 210px; height: 210px; top: 30px; left: 130px; }
.cloud9 .c3 { width: 190px; height: 190px; top: 5px; left: 270px; }
.cloud9 .c4 { width: 160px; height: 160px; top: 90px; left: 380px; }
.cloud9 .c5 { width: 140px; height: 140px; top: 130px; left: 80px; }
.cloud9 .c6 { width: 120px; height: 120px; top: 170px; left: 220px; }
.cloud9 .c7 { width: 110px; height: 110px; top: 190px; left: 450px; }

.cloud10 {
    top: 15%;
    left: -5%;
    width: 750px;
    height: 280px;
    animation: floatCloud 42s linear infinite;
    animation-delay: -50s;
}
.cloud10 .c1 { width: 210px; height: 210px; top: 12px; left: 25px; }
.cloud10 .c2 { width: 250px; height: 250px; top: 40px; left: 140px; }
.cloud10 .c3 { width: 230px; height: 230px; top: 8px; left: 300px; }
.cloud10 .c4 { width: 200px; height: 200px; top: 100px; left: 440px; }
.cloud10 .c5 { width: 180px; height: 180px; top: 140px; left: 70px; }
.cloud10 .c6 { width: 160px; height: 160px; top: 180px; left: 250px; }
.cloud10 .c7 { width: 140px; height: 140px; top: 220px; left: 420px; }
.cloud10 .c8 { width: 120px; height: 120px; top: 250px; left: 580px; }

@keyframes floatCloud {
    0% { transform: translateX(0) translateY(0); opacity: 0; }
    15% { opacity: 0.9; }
    40% { opacity: 1; }
    70% { opacity: 0.95; }
    90% { opacity: 0.6; }
    100% { transform: translateX(calc(100vw + 1100px)) translateY(-40px); opacity: 0; }
}

/* === ЗВЁЗДНОЕ НЕБО === */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: radial-gradient(circle, #fff, #ffe6b3);
    border-radius: 50%;
    opacity: 0;
    animation: floatStar 5s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(255,220,150,0.6);
}

@keyframes floatStar {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.7; }
    100% { transform: translateY(-120px) translateX(30px); opacity: 0; }
}

.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: twinkle 4s infinite;
    pointer-events: none;
}

@keyframes twinkle {
    0% { box-shadow: inset 0 0 30px rgba(255,200,100,0.05); }
    50% { box-shadow: inset 0 0 70px rgba(255,200,100,0.15); }
    100% { box-shadow: inset 0 0 30px rgba(255,200,100,0.05); }
}

/* === КАРТОЧКА ВХОДА === */
.glass-card {
    position: relative;
    z-index: 2;
    background: rgba(8, 12, 20, 0.75);
    backdrop-filter: blur(16px);
    border-radius: 48px;
    padding: 52px 44px;
    width: 90%;
    max-width: 520px;
    border: 1px solid rgba(255, 210, 130, 0.25);
    box-shadow: 0 30px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,210,130,0.1);
    transition: transform 0.3s ease;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo {
    text-align: center;
    margin-bottom: 42px;
}

.logo-img {
    width: 160px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
    transition: transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.03);
}

.archive-title {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.title-zh {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFE6B0, #FFD966, #FFB347);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 3s linear infinite;
    letter-spacing: -1px;
    text-shadow: 0 0 15px rgba(255, 200, 100, 0.5);
    position: relative;
}

.title-zh::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD966, #FFB347, transparent);
    border-radius: 3px;
    animation: underlineGlow 2s ease-in-out infinite;
}

.title-dash {
    font-size: 52px;
    font-weight: 800;
    color: #FFD966;
    text-shadow: 0 0 10px #FFB347;
    animation: pulse 1.8s ease-in-out infinite;
}

.title-archive {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #D4AF37, #FFE4A0, #C49A2C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
    animation: fadeInLetters 1.2s ease-out forwards;
    position: relative;
}

.subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 220, 160, 0.7);
    margin-top: 8px;
    font-weight: 400;
    word-spacing: 4px;
    animation: fadeInUpSub 1s ease-out 0.3s both;
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes underlineGlow {
    0%, 100% { opacity: 0.3; width: 30%; left: 35%; }
    50% { opacity: 1; width: 70%; left: 15%; }
}
@keyframes pulse {
    0%, 100% { opacity: 0.7; text-shadow: 0 0 5px #FFB347; }
    50% { opacity: 1; text-shadow: 0 0 20px #FFD966, 0 0 5px #FFA500; }
}
@keyframes fadeInLetters {
    0% { opacity: 0; transform: translateY(10px); letter-spacing: 4px; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: -1px; }
}
@keyframes fadeInUpSub {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Поля ввода */
.input-group {
    position: relative;
    margin-bottom: 28px;
}

.input-group input {
    width: 100%;
    padding: 18px 24px;
    background: rgba(20, 25, 35, 0.7);
    border: 1px solid rgba(255, 210, 130, 0.3);
    border-radius: 60px;
    color: #fff3e0;
    font-size: 16px;
    font-family: 'Space Grotesk', monospace;
    transition: all 0.3s ease;
    outline: none;
    font-weight: 400;
}

.input-group input:focus {
    border-color: #ffcc66;
    background: rgba(30, 35, 50, 0.9);
    box-shadow: 0 0 18px rgba(255, 204, 102, 0.3);
}

.input-group input::placeholder {
    color: rgba(255, 220, 160, 0.4);
    font-weight: 300;
}

.auth-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #c9a03d, #8b691b);
    border: none;
    border-radius: 60px;
    color: #1a1204;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 160, 61, 0.4);
    background: linear-gradient(135deg, #ddb14a, #a07725);
    color: #0f0a00;
}

.error-message {
    margin-top: 24px;
    padding: 14px;
    background: rgba(180, 60, 50, 0.2);
    border-left: 4px solid #ff7755;
    border-radius: 20px;
    color: #ffaa88;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.error-message.show {
    opacity: 1;
}

/* Всплывающее уведомление о защите (сообщение при ПКМ, F12, Ctrl+U) */
.protection-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    color: #ffcc88;
    padding: 24px 40px;
    border-radius: 60px;
    font-family: 'Space Grotesk', monospace;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    z-index: 10000;
    border: 1px solid rgba(255,200,100,0.5);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}
.protection-notice.show {
    opacity: 1;
}

/* Адаптация под мобильные */
@media (max-width: 600px) {
    .glass-card {
        padding: 36px 28px;
        margin: 20px;
        border-radius: 36px;
    }
    .title-zh,
    .title-dash,
    .title-archive {
        font-size: 36px;
    }
    .subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }
    .logo-img {
        width: 110px;
    }
    .protection-notice {
        white-space: normal;
        font-size: 14px;
        padding: 16px 24px;
        width: 80%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cloud1, .cloud2, .cloud3, .cloud4, .cloud5, .cloud6, .cloud7, .cloud8, .cloud9, .cloud10 {
        transform: scale(0.55);
        left: -40%;
    }
}