@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(45deg, #1a237e, #283593, #3949ab, #3f51b5);
    margin: 0;
    overflow: hidden; /* Hide scrollbars from canvas */
}

#stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.ai-slogan {
    font-size: 3rem; /* Увеличенный размер шрифта */
    color: #fff;
    margin-bottom: 3rem; /* Увеличенное расстояние */
    text-align: center;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4); /* Усиленная тень */
    font-weight: 700; /* Более жирный шрифт */
    letter-spacing: 2px; /* Расстояние между буквами */
}

.container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 350px;
    z-index: 1;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 600;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: none; /* Modern forms often use placeholders */
}

input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #ff4081;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #f50057;
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.register-link a,
.login-link a {
    color: #ff4081;
    text-decoration: none;
    font-weight: 600;
}

.hidden {
    display: none;
}

.message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

.success {
    background-color: rgba(76, 175, 80, 0.5);
}

.error {
    background-color: rgba(244, 67, 54, 0.5);
}

.info {
    background-color: rgba(33, 150, 243, 0.5);
}
