/* --- Мягкий пастельный iOS стиль --- */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(to bottom, #e0f7fa, #fce4ec);
    height: 100vh;
    overflow: hidden;
    color: #333;
}

/* Фон с очень мягкой анимацией */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%),
    radial-gradient(circle at 70% 70%, rgba(200,230,250,0.2), transparent 70%);
    animation: floatBg 20s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes floatBg {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 15px); }
}

/* Центрирование карточки */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.login-title span {
    color: #90caf9; /* мягкий голубой акцент */
}

.login-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    opacity: 0.85;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.token-input {
    padding: 14px 18px;
    border-radius: 15px;
    border: 1px solid #cfd8dc;
    font-size: 16px;
    outline: none;
    background: rgba(255,255,255,0.9);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.token-input:focus {
    border-color: #81d4fa;
    box-shadow: 0 0 12px rgba(129,212,250,0.25);
}

.btn-login {
    padding: 14px;
    border-radius: 15px;
    border: none;
    background: #81d4fa;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(129,212,250,0.3);
}

.btn-login:hover {
    background: #4fc3f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79,195,247,0.3);
}

.error {
    color: #ef5350;
    font-weight: 500;
    margin-top: 10px;
}

/* Адаптив */
@media (max-width: 480px) {
    .login-card {
        padding: 35px 25px;
    }
    .login-title {
        font-size: 22px;
    }
    .login-subtitle {
        font-size: 14px;
    }
    .token-input, .btn-login {
        font-size: 14px;
    }
}
